This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author brett.cannon
Recipients brett.cannon, ezio.melotti, ncoghlan, pitrou, pjenvey, rhettinger, zzzeek
Date 2012-11-02.20:03:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1351886608.6.0.601380985485.issue16389@psf.upfronthosting.co.za>
In-reply-to
Content
Would be interesting to know what speed difference would occur if the statistics gathering was optional and turned off.

As for _make_key(), I wonder if ``(args, tuple(sorted(kwd.items())))`` as a key would be any faster as a tuple's hash is derived from its contents and not the tuple itself (if I remember correctly). You could even special case when len(kwds) == 0 to skip the sorted(kwd.items()) overhead if it is worth it performance-wise.
History
Date User Action Args
2012-11-02 20:03:28brett.cannonsetrecipients: + brett.cannon, rhettinger, ncoghlan, pitrou, pjenvey, ezio.melotti, zzzeek
2012-11-02 20:03:28brett.cannonsetmessageid: <1351886608.6.0.601380985485.issue16389@psf.upfronthosting.co.za>
2012-11-02 20:03:28brett.cannonlinkissue16389 messages
2012-11-02 20:03:28brett.cannoncreate