[issue19232] Speed up _decimal import

Stefan Krah report at bugs.python.org
Mon Oct 14 13:00:01 CEST 2013


Stefan Krah added the comment:

About IDLE I can't say anything, but I'm not entirely sure if the
PEP-399 import method is easier to understand for users, see e.g.:

http://stackoverflow.com/questions/13194384/instantiate-decimal-class

I get the impression that the posters at first did not even realize
that there *is* an accelerator in Python 3.3, so they had a hard time
debugging the issue.


As for the load time: Personally I don't have any application
that relies on a very short load time, but I wan't to note again
that importing decimal at Python startup actually doubles the
startup time.

So if there are applications that start a new Python script
for each request (e.g. via djb's tcpserver), it could really
matter.


OTOH I don't like moving code around either, so we can wait until
there's a demonstrated need for the speedup.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19232>
_______________________________________


More information about the Python-bugs-list mailing list