diff options
author | Peng Huang <shawn.p.huang@gmail.com> | 2010-11-24 16:53:36 +0900 |
---|---|---|
committer | Peng Huang <shawn.p.huang@gmail.com> | 2010-11-24 16:53:36 +0900 |
commit | 15b9b66b013ee83974b3ae16a76983cc10e9dbe8 (patch) | |
tree | d03747c64f5d2c8b3faff77ebc42f43ed6f1be2b /src/PYString.h | |
parent | f067b7a651cf24f7234441a31c0f88191cb74a42 (diff) | |
download | ibus-libpinyin-15b9b66b013ee83974b3ae16a76983cc10e9dbe8.tar.gz ibus-libpinyin-15b9b66b013ee83974b3ae16a76983cc10e9dbe8.tar.xz ibus-libpinyin-15b9b66b013ee83974b3ae16a76983cc10e9dbe8.zip |
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
Diffstat (limited to 'src/PYString.h')
-rw-r--r-- | src/PYString.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/PYString.h b/src/PYString.h index 2e140bb..ba83213 100644 --- a/src/PYString.h +++ b/src/PYString.h @@ -31,6 +31,7 @@ class String : public std::string { public: String () : std::string () { } String (const gchar *str) : std::string (str) { } + String (const std::string &str) : std::string (str) { } String (gint len) : std::string () { reserve (len); } String & printf (const gchar *fmt, ...) |