summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2016-08-17 00:39:27 +0100
committerEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2016-08-17 00:46:56 +0100
commitf0f1698e465667d2180c451b0b7d5c30d7bd1491 (patch)
tree158d0d90b2841074eb61d72dcacb4f018a564efc /examples
parent2587d82af8d7a211f7685f0a8a7a198954650586 (diff)
downloadslixmpp-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 'examples')
0 files changed, 0 insertions, 0 deletions