Lars Gullik Bjønnes wrote:
> Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes:
> 
> | >>>>> "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). 
> 
> This looks like the cache has no effect at all...
>  

This was both the enabled version, sorry, see my next email.

> | 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.
> 
> It will not be 8bit fonts.
> 
> We should use a unordered_map and fallback to map if that is not
> available.
> 

Reply via email to