]> granicus.if.org Git - python/commit
Add fast-path for comparing interned (true) string objects.
authorMarc-André Lemburg <mal@egenix.com>
Wed, 7 Nov 2001 14:54:49 +0000 (14:54 +0000)
committerMarc-André Lemburg <mal@egenix.com>
Wed, 7 Nov 2001 14:54:49 +0000 (14:54 +0000)
commitc52d713b7a324b9ed29ba75f438bf11b96953e41
tree5343a6ea46eebd237dd0d80b1b7aaa3d88afc840
parentf0b11d28937c826054f662b4958d3d637bf42fd0
Add fast-path for comparing interned (true) string objects.

This patch boosts performance for comparing identical string object
by some 20% on my machine while not causing any noticable slow-down
for other operations (according to tests done with pybench).
Python/ceval.c