Tag Archives: overhead

zetcd:用 etcd 跑 ZooKeeper 架構

在「zetcd: running ZooKeeper apps without ZooKeeper」這邊介紹了用 etcd 當作 ZooKeeper 伺服器。程式碼在「Serve the Apache Zookeeper API but back it with an etcd cluster」這邊可以看到。 不過可以看到有不少 overhead: 但 etcd 用 Go 寫 (省下 JVM tuning?),可能是個不錯的誘因...

Posted in Computer, Murmuring, Network, Software | Tagged , , , , , , , , , , , , | Leave a comment

印 "#" 比印 "B" 來的快的問題

這篇是兩年前在 StackOverflow 上的問題:「Why is printing “B” dramatically slower than printing “#”?」。 問問題的人這段程式跑了 8.52 秒: Random r = new Random(); for (int i = 0; i < 1000; i++) { for (int j = 0; j < 1000; j++) { if(r.nextInt(4) … Continue reading

Posted in Computer, Murmuring, Programming | Tagged , , , , , , , , | 1 Comment