摘要:        
普通计时可以clock()精确计时:windows:QueryPerformanceCounter() linux:clock_gettime()用法:google参考:http://blog.csdn.net/pirate_code/article/details/5670055http://blog.chinaunix.net/uid-25909722-id-2827364.html    阅读全文
        
            posted @ 2013-07-28 21:24
good90
阅读(194)
评论(0)
推荐(0)
        
        
            
        
        
摘要:        
python有一个python模块--hash_ring,即python中的一致性hash,使用起来也挺简单。可以参考下官方例子:https://pypi.python.org/pypi/hash_ring/ 1 Basic example of usage (for managing memcached instances): 2 3 memcache_servers = ['192.168.0.246:11212', 4 '192.168.0.247:11212', 5 '192.168.0.249:1121...    阅读全文
        
            posted @ 2013-07-28 21:22
good90
阅读(2744)
评论(0)
推荐(0)
        
        
                    
                
浙公网安备 33010602011771号