summaryrefslogtreecommitdiffstats
path: root/src/3rdparty/clucene/AUTHORS
diff options
context:
space:
mode:
authorKent Hansen <kent.hansen@nokia.com>2010-03-05 11:23:09 (GMT)
committerKent Hansen <kent.hansen@nokia.com>2010-03-05 13:24:22 (GMT)
commit8a9a160c8f509511b7e44b66a20d60fb37d614cc (patch)
treeb7723c1e7ae6aef1a0a71f8dac2c93bbd671104a /src/3rdparty/clucene/AUTHORS
parent88e9515cc4300d841b16f17fe6b5c8c0d6de3562 (diff)
downloadQt-8a9a160c8f509511b7e44b66a20d60fb37d614cc.zip
Qt-8a9a160c8f509511b7e44b66a20d60fb37d614cc.tar.gz
Qt-8a9a160c8f509511b7e44b66a20d60fb37d614cc.tar.bz2
QtScript: Don't needlessly make deep copies of function names
The QObject binding uses the function name to determine whether a meta-method is an overload. This was implemented quite naively by copying the name from the signature into another array before comparing it. This could cause several unnecessary memory allocations, since storing the name is really only needed when there is an exception (e.g. ambiguous call). Instead, use strncmp to compare only the relevant characters of the original (non-copied) method signature. This makes normal slot invocation from QtScript up to 15% faster. Reviewed-by: Jedrzej Nowacki
Diffstat (limited to 'src/3rdparty/clucene/AUTHORS')
0 files changed, 0 insertions, 0 deletions