]> granicus.if.org Git - python/commit
Switch dict lookup around to optimizing for unicode.
authorGuido van Rossum <guido@python.org>
Tue, 18 Sep 2007 17:26:56 +0000 (17:26 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 18 Sep 2007 17:26:56 +0000 (17:26 +0000)
commit89d8c60d0463b4714ceae6c05f7e8c20157fd589
tree5339c4ee8f9b7da6c479ba38297305b06a52d8a4
parent4d0277233e184dabefdbc966f5764034737cd2b9
Switch dict lookup around to optimizing for unicode.
For now, unicode_eq() is static inside dictobject.c;
eventually we may have to move it into unicodeobject.c,
so as to support the same hacks from setobject.c.

None of this seems to affect performance much, but it's still the
right thing to do.
Objects/dictobject.c