AGLFN: optimize glyph name lookup and reverse map creation
authorKonstantin Ritt <ritt.ks@gmail.com>
Sun, 10 Jun 2012 15:05:41 +0000 (18:05 +0300)
committerQt by Nokia <qt-info@nokia.com>
Thu, 14 Jun 2012 03:21:54 +0000 (05:21 +0200)
commit3014c3575626253e80f7f5d01ad4605dac34010b
tree0d334b1a9450f80ae0caf0f9b384cf9f0dd41989
parent0137f092af12110c427f05358f7b207ea95ea341
AGLFN: optimize glyph name lookup and reverse map creation

Use binary search in glyph name lookup, drop the linear search sentinel (0xFFFF);
Pass the reverse map by ref, initialize with memset.

Change-Id: I56de64bf2352af0615787e4cc0e13c922c640822
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
src/gui/text/qfontsubset.cpp
src/gui/text/qfontsubset_p.h