diff options
author | Jedrzej Nowacki <jedrzej.nowacki@nokia.com> | 2010-08-02 07:57:15 (GMT) |
---|---|---|
committer | Jedrzej Nowacki <jedrzej.nowacki@nokia.com> | 2010-09-30 10:47:00 (GMT) |
commit | 06893e99c46d28b9f02ce7158c07372daa6b9bba (patch) | |
tree | 8af22836fe4a3615495724e97b01e21b3a9932b7 /doc/src/snippets/code/src_gui_widgets_qmenu.cpp | |
parent | 44d77de30dc61974640a5c6bee7ce1ff2cded0f5 (diff) | |
download | Qt-06893e99c46d28b9f02ce7158c07372daa6b9bba.zip Qt-06893e99c46d28b9f02ce7158c07372daa6b9bba.tar.gz Qt-06893e99c46d28b9f02ce7158c07372daa6b9bba.tar.bz2 |
Improve lookup speed of QMetaType::type().
Improvement bases on changed algorithm, now instead of looping
over list of types, we are using a hash table to perform a lookup.
For the QMetaType::builtinTypes benchmark, this improves
performance 2 times.
Performance of these function is important for all bindings in
the QtScript and probably in the QML.
Reviewed-by: Olivier Goffart
Diffstat (limited to 'doc/src/snippets/code/src_gui_widgets_qmenu.cpp')
0 files changed, 0 insertions, 0 deletions