Georg Baum wrote:
> Abdelrazak Younes wrote:
> Peter Kümmel wrote:
>>> Maybe someone has an idea when looking
>>> at the Lyx functions (do we really
>>> need so much libintl_dcigettext calls?)
>> I don't know much this field but I guess we could cache the translated
>> messages on startup instead of requiring a translation each time. Or do
>> we do that already? Jean-Marc?
> 
> I thought that too and did some profiling some time ago and it turned out
> that the gettext calls were negligible. Of course that was Linux, and it
> might look differently on windows.

here it is an place 4

  -lyx-qt4.exe (SymPdb), 15.828941, 73824172
     font_metrics::width, 1.134727, 4445434 (second scrolling, cache is full!)
     LyXText::rowBreakPoint, 0.893593, 37687
     std::_Tree<>::find, 0.794602, 5223557
     libintl_dcigettext, 0.683546, 21400

But I don't understand why font_metrics::width needs so
much time. It was the scrolling back so that the cache
is already full.

Reply via email to