Jean-Marc Lasgouttes
2014-03-24 15:26:51 UTC
commit 8ac5f09c1783261018a107b54ce398733b8f97a4
Date: Fri Mar 21 12:24:47 2014 +0100
Do not store Languages objects in completion words lists
In the current code each paragraph contains a map<Language,
WordList*>, which means that it contains a full copy of the language
object. Since these objects contain translation tables nowadays, this
is a very bad idea.
This patch simply replaces the Language key by a string.
When loading the Userguide on linux/x86_64, the total memory
consumption decreases from 36.27MB to 31.50MB.
Richard, I think we want that for 2.1.x eventually. In what branch doDate: Fri Mar 21 12:24:47 2014 +0100
Do not store Languages objects in completion words lists
In the current code each paragraph contains a map<Language,
WordList*>, which means that it contains a full copy of the language
object. Since these objects contain translation tables nowadays, this
is a very bad idea.
This patch simply replaces the Language key by a string.
When loading the Userguide on linux/x86_64, the total memory
consumption decreases from 36.27MB to 31.50MB.
you want me to commit it?
JMarc