Le Fri, 11 Oct 2013 17:01:35 +0200, Stefan Krah <ste...@bytereef.org> a écrit : > > I'm getting about the same values as above. I may be misunderstanding > something, but I wanted to reduce the difference between the 2.21 msec > and the 112 usec.
So you aren't complaining about C extension import time, but Python code import time, right? > So the first step I tried is something horrible (typing from memory): > > try: > import _decimal > except ImportError: > <whole of decimal.py here !!!> > else: > from _decimal import * > > That way the 2.21 msec are reduced to 912 usec, but the indentation is > an abomination. Just create a _pydecimal module (like _pyio). Regards Antoine. _______________________________________________ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com