Jean-Marc Lasgouttes wrote:
"Abdelrazak" == Abdelrazak Younes <[EMAIL PROTECTED]> writes:

Abdelrazak> There was no such trick. Andre proposed to limit the cache
Abdelrazak> to the first 256 chars. I pushed that to 65536 (2^16)
Abdelrazak> which covers all of ucs2. Even if we use 100 different
Abdelrazak> fonts and sizes in a document this add less than 7 megs of
Abdelrazak> memory.

If it proves to be a problem after all, it will be possible to
allocate several 256 bits ranges on demand.

Yes, or use a hash table as you suggested. With the UserGuide the additional memory used by the cache is about 3 megs on first scrolling from beginning to end. Unfortunately there's some memory leaks and the used memory keeps increasing on each scrolling. This is true with or without the cache but it is increasing more with the cache. Could someone tests LyX with Valgrind on linux?

Abdel.

Reply via email to