17/04/2013 00:05, pdv:
I do now all the width-calculations in one function.
In that function the widths are cached in a map<docstring,int>.
I then obtain again a substantial speed increase.
For testing I defined a static map, but I assume that eventually the map
should be stored in a suitable object so that the map doesn't grow out
of proportion.

did you try a QHash<QString,int> ? It might be faster.

JMarc

Reply via email to