|author||Emmanuel Gil Peyrot <firstname.lastname@example.org>||2016-08-17 00:39:27 +0100|
|committer||Emmanuel Gil Peyrot <email@example.com>||2016-08-17 00:46:56 +0100|
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 'slixmpp/xmlstream/xmlstream.py')
0 files changed, 0 insertions, 0 deletions