zookeeper-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cxxjava <...@git.apache.org>
Subject [GitHub] zookeeper issue #480: c++ zookeeper base java zookeeper v3.4.11
Date Tue, 06 Mar 2018 02:27:59 GMT
Github user cxxjava commented on the issue:

    https://github.com/apache/zookeeper/pull/480
  
    @maoling 
    [CxxZookeeper](https://github.com/cxxjava/CxxZookeeper)是用c++重写了一遍,所有逻辑都是直接复制java版zk,所以CxxZookeeper的逻辑正确性同步官方zk。在未深入优化的情况下,c++版性能只是接近java版,并未超越,所以还无法革zk的命(主要原因是c++的concurrent库性能还不及java版),但内存使用优势明显,下面是生产环境下的快照:
    c++ zk : <img width="770" alt="zk_cpp_top" src="https://user-images.githubusercontent.com/14046581/37010891-af055dba-2128-11e8-8e5e-d3d80d1f87fb.png">
    java zk: <img width="766" alt="zk_java_top" src="https://user-images.githubusercontent.com/14046581/37010892-af3d2b0a-2128-11e8-8881-e8f6628cb2a9.png">



---

Mime
View raw message