Use in memory user database to improve performance.
authorPeng Huang <shawn.p.huang@gmail.com>
Wed, 24 Nov 2010 07:53:36 +0000 (16:53 +0900)
committerPeng Huang <shawn.p.huang@gmail.com>
Wed, 24 Nov 2010 07:53:36 +0000 (16:53 +0900)
commit15b9b66b013ee83974b3ae16a76983cc10e9dbe8
treed03747c64f5d2c8b3faff77ebc42f43ed6f1be2b
parentf067b7a651cf24f7234441a31c0f88191cb74a42
Use in memory user database to improve performance.

I found pinyin's performance is very low when system IO load is big. So
I let pinyin use im memory user database to improve the performance, and
write the database to the harddisk in 60 seconds or when engine exits.

BUG=none
TEST=manual

Review URL: http://codereview.appspot.com/3303041
src/PYDatabase.cc
src/PYDatabase.h
src/PYMain.cc
src/PYString.h