Jean-Marc Lasgouttes wrote:
"Peter" == Peter Kümmel <[EMAIL PROTECTED]> writes:
Peter> With enabled USE_LYX_FONTCACHE it is a little bit faster
Peter> (because the value of QLFontInfo::width becomes smaller
Peter> compared to the others: enabled 100<->48, disabled 100<->47)
I'd say it is the same (the margin error is important, I think).
Note that there is room for improvement in our fontcache which uses a
std::map. A vector will probably not use too much memory (for 8bit
fonts) and be much faster.
Just for clarity, the map doesn't cache fonts, only font widths (with
Uchar as the key). The font cache is done elsewhere in 4-dimensional
C-array (fontinfo_).
Abdel.