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 serhiy.storchaka
Recipients dstufft, ezio.melotti, josh.r, pitrou, rhettinger, scoder, serhiy.storchaka, tim.peters
Date 2015-03-25.13:22:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1427289735.73.0.250848866729.issue23712@psf.upfronthosting.co.za>
In-reply-to
Content
In case of class or module dicts attribute names usually are interned. So no string comparison is needed if the key is found. It is needed only when the key is not found, but found a key with the same hash (with the chance 5e-28). The benefit of optimization is 5e-28 * time of string comparison per key lookup.
History
Date User Action Args
2015-03-25 13:22:15serhiy.storchakasetrecipients: + serhiy.storchaka, tim.peters, rhettinger, pitrou, scoder, ezio.melotti, dstufft, josh.r
2015-03-25 13:22:15serhiy.storchakasetmessageid: <1427289735.73.0.250848866729.issue23712@psf.upfronthosting.co.za>
2015-03-25 13:22:15serhiy.storchakalinkissue23712 messages
2015-03-25 13:22:15serhiy.storchakacreate