diff options
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2016-08-17 00:39:27 +0100 |
---|---|---|
committer | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2016-08-17 00:46:56 +0100 |
commit | f0f1698e465667d2180c451b0b7d5c30d7bd1491 (patch) | |
tree | 158d0d90b2841074eb61d72dcacb4f018a564efc /docs/api/componentxmpp.rst | |
parent | 2587d82af8d7a211f7685f0a8a7a198954650586 (diff) | |
download | slixmpp-f0f1698e465667d2180c451b0b7d5c30d7bd1491.tar.gz slixmpp-f0f1698e465667d2180c451b0b7d5c30d7bd1491.tar.bz2 slixmpp-f0f1698e465667d2180c451b0b7d5c30d7bd1491.tar.xz slixmpp-f0f1698e465667d2180c451b0b7d5c30d7bd1491.zip |
ElementBase: micro-optimise __getitem__, hands down the most often called function
This makes it go down from 8.767s to 7.960s in a random benchmark.
Remove unnecessary assignations, don’t create an OrderedDict from a
dict to then convert it to a dict again, only obtain the get_method2
name if get_method wasn’t present.
get_method2 (the title-case one) takes about 1/8th of the total time
spent in this function, we should eliminate it as soon as possible.
Diffstat (limited to 'docs/api/componentxmpp.rst')
0 files changed, 0 insertions, 0 deletions