Message174563
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. |
|
Date |
User |
Action |
Args |
2012-11-02 20:03:28 | brett.cannon | set | recipients:
+ brett.cannon, rhettinger, ncoghlan, pitrou, pjenvey, ezio.melotti, zzzeek |
2012-11-02 20:03:28 | brett.cannon | set | messageid: <1351886608.6.0.601380985485.issue16389@psf.upfronthosting.co.za> |
2012-11-02 20:03:28 | brett.cannon | link | issue16389 messages |
2012-11-02 20:03:28 | brett.cannon | create | |
|