[Python-Dev] Rethinking intern() and its data structure

"Martin v. Löwis" martin at v.loewis.de
Thu Apr 9 22:13:40 CEST 2009

> I don't have numbers on how much that would improve CPU times, I would
> imagine improving 'intern()' would impact import times more than run
> times, simply because import time is interning a *lot* of strings.
> Though honestly, Bazaar would really like this, because startup overhead
> for us is almost 400ms to 'do nothing', which is a lot for a command
> line app.

Maybe I misunderstand your proposed change: how could the representation
of the interning dict possibly change the runtime of interning? (let
alone significantly)


More information about the Python-Dev mailing list