Posts Tagged ‘performance’


LogMicroscope:boost performance for logging system by 43%

Recently,I have rewritten the logging engine for LogMicroscope,using circular-buffer in log writing threads,and WriteFileGather in file writing thread to gathers up the data from these discrete buffers in memory and transfers them "in place" as a single operation.

Continue Reading...

September 2nd, 2009 in Programming | 1 comment


Boost your WordPress performance on Windows IIS 6 with FastCGI and eAccelerator in 5 minutes

First,download and install the FastCgi Extension for IIS 6 from microsoft.The FastCGI protocol enables PHP applications to be hosted on the IIS web server in a high-performance and reliable way.FastCGI re-uses CGI processes for multiple requests, which provides a significant performance boost as compared to CGI.

Continue Reading...

October 4th, 2008 in wordpress | 4 comments


Hash table collision resolution

最近需要一个高性能的hash实现,对比了很多实现hash表的源代码,主要区别在于冲突检测的实现方式。

关于冲突检测的两种方式的对比(chaining and open addressing):

http://www.absoluteastronomy.com/enc1/hash_table

Google有一个高效的实现Open addressing hash 的开源项目

http://goog-sparsehash.sourceforge.net/

Open addressing的性能可能会更好些,但是前提是需要一个非常好的hash生成算法。如果使用Chaining方式,加上一个非常高效的memory pool管理,减少cache失效时间,平均性能应该和Open addressing差不多。

顺便了解下judy:
A Performance Comparison of Judy to Hash Tables

June 5th, 2006 in Programming | No comments yet