'import copy' too slow?, was Re: [Python-Dev] implementation of copy standard lib
Peter Otten
__peter__ at web.de
Tue Aug 16 16:48:04 EDT 2005
[Martijn Brouwer]
> Importing copy takes 5-10 times more time that
> import os, string and re together!
If your measurement isn't flawed, try again after replacing the following
import in copy.py
try:
from org.python.core import PyStringMap
except ImportError:
PyStringMap = None
with just
PyStringMap = None
The import is expected to fail on CPython -- and it may take a long time
depending on what you have in your path.
Peter
More information about the Python-list
mailing list