]> granicus.if.org Git - python/commit
Charles G Waldman:
authorGuido van Rossum <guido@python.org>
Fri, 28 Apr 2000 16:42:25 +0000 (16:42 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 28 Apr 2000 16:42:25 +0000 (16:42 +0000)
commita2ace6ae2522a61e534d15d80020c100e131d499
tree80a609687f930a80bbc92f4fed84abdb2e40bbd6
parent3c3507fd4fad44d9497c9abfe20ce67d96773f87
Charles G Waldman:

Follow a suggestion in an /*XXX*/ comment [in com_add()] to speed up
compilation by using supplemental dictionaries to keep track of names
and constants, eliminating quadratic behavior.  With this patch in
place, the time to import a 5000-line file with lots of constants [at
the global level] is reduced from 20 seconds to under 3 on my system.
Python/compile.c