Tuesday, March 28, 2017

Operation latency

From:
https://fusiontables.google.com/DataSource?snapid=S523155yioc
Latency numbers every programmer should knowJeff Dean (http://research.google.com/people/jeff/)

operation
 
latency (ns)
 
 
L1 cache reference0.5
Branch mispredict5
L2 cache reference7
Mutex lock/unlock25
Main memory reference100
Compress 1K bytes with Zippy3,000
Send 2K bytes over 1 Gbps network20,000
Read 1 MB sequentially from memory250,000
Round trip within same datacenter500,000
Disk seek10,000,000
Read 1 MB sequentially from disk20,000,000
Send packet CA->Netherlands->CA150,000,000

Thursday, March 23, 2017

Set, HashSet, Map, HashMap, TreeSet, TreeMap

https://teamtreehouse.com/community/set-hashset-map-hashmap-treeset-treemap

“Set, HashSet, Map, HashMap, TreeSet, TreeMap.” Set, HashSet, Map, HashMap, TreeSet, TreeMap | Treehouse Community, teamtreehouse.com/community/set-hashset-map-hashmap-treeset-treemap. Accessed 23 Mar. 2017.

Monday, March 20, 2017

Master-Master vs Master-Slave Database Architecture

http://stackoverflow.com/questions/3736969/master-master-vs-master-slave-database-architecture

“Master-Master vs Master-Slave Database Architecture?” Stack Overflow, stackoverflow.com/questions/3736969/master-master-vs-master-slave-database-architecture. Accessed 21 Mar. 2017.

Thursday, March 16, 2017

HashMap vs HashTable

http://stackoverflow.com/questions/40471/differences-between-hashmap-and-hashtable

“Differences between HashMap and Hashtable?” Java - Differences between HashMap and Hashtable? - Stack Overflow, stackoverflow.com/questions/40471/differences-between-hashmap-and-hashtable. Accessed 16 Mar. 2017.

Saturday, March 11, 2017

List vs ArrayList

http://stackoverflow.com/questions/9852831/polymorphism-why-use-list-list-new-arraylist-instead-of-arraylist-list-n

“Polymorphism: Why Use ‘List List = New ArrayList’ Instead of ‘ArrayList List = New ArrayList’?” Java - Polymorphism: Why Use "List List = New ArrayList" Instead of "ArrayList List = New ArrayList"? - Stack Overflow, stackoverflow.com/questions/9852831/polymorphism-why-use-list-list-new-arraylist-instead-of-arraylist-list-n. Accessed 11 Mar. 2017.

“Converting 'ArrayList to 'String[]' in Java.”

http://stackoverflow.com/questions/4042434/converting-arrayliststring-to-string-in-java

“Converting 'ArrayList to 'String[]' in Java.” Arrays - Converting 'ArrayList to 'String[]' in Java - Stack Overflow, stackoverflow.com/questions/4042434/converting-arrayliststring-to-string-in-java. Accessed 11 Mar. 2017.

Friday, March 10, 2017

P/NP/NPC

http://www.matrix67.com/blog/archives/105

“Matrix67: The Aha Moments.” Matrix67 The Aha Moments, www.matrix67.com/blog/archives/105. Accessed 10 Mar. 2017.