residual: optimize Font::getCharIndex
|Reported by:||SF/mannythegnome||Owned by:||aquadran|
The attached patch ensures that if the font's character
index matches the character index, it is returned
directly, instead of iterating the font's character table.
According to gprof this was a bottleneck:
% cumulative self self total
time seconds seconds calls s/call s/call name
34.30 10.75 10.75 1867826 0.00 0.00
Ticket imported from: #1495110. Ticket imported from: patches/640.