[Python-Dev] C extension import time (original) (raw)
Victor Stinner victor.stinner at gmail.com
Fri Oct 11 23:08:00 CEST 2013
- Previous message: [Python-Dev] Change PEP 399 import recommendation
- Next message: [Python-Dev] Support keyword in PEP URL?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
2013/10/11 Antoine Pitrou <solipsis at pitrou.net>:
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).
+1 but both modules must be tested (as io and _pyio).
Victor
- Previous message: [Python-Dev] Change PEP 399 import recommendation
- Next message: [Python-Dev] Support keyword in PEP URL?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]