Displaying 1 result from an estimated 1 matches for "xapianstring".
2014 Mar 28
2
Reducing Xapian memory usage
...s in a document, it can get quite bad. We might want to do this
in smaller chunks.
--
The main way that I think this can be fixed is by introducing a new string
class which uses reference counting. That way (1) will easily be solved.
Regarding (2), (3), it probably makes sense to have a set<XapianString> in the
Database class. When spellings, documents, position lists are loaded into
memory, the string is fetched from that set, this way all strings will only
have 1 copy of themselves.
I'm not too sure how this would relate to the public API though. Opinions?
--
Vishesh Handa
[1] http...