[ scummvm-Patches-1495110 ] residual: optimize Font::getCharIndex
SourceForge.net
noreply at sourceforge.net
Thu May 25 21:01:39 CEST 2006
Patches item #1495110, was opened at 2006-05-25 21:01
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=418822&aid=1495110&group_id=37116
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Christian Neumair (mannythegnome)
Assigned to: Nobody/Anonymous (nobody)
Summary: residual: optimize Font::getCharIndex
Initial Comment:
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
Font::getCharIndex(unsigned char)
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=418822&aid=1495110&group_id=37116
More information about the Scummvm-tracker
mailing list