ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> import-sig
import-sig
[Import-sig] Re: [Python-Dev] Re: Proposal for a modified import mechanism.
by James C. Ahlstrom other posts by this author
Nov 12 2001 3:02PM messages near this date
[Import-sig] TOP Computer Tables, Office Chair, Chair Components Manufacturer | Re: [Import-sig] Re: Proposal for a modified import mechanism.
eric wrote:

>  (and see) 0% overhead for importing standard modules (by far the most
>  common case).  Adding 10% overhead to importing a very large package
>  with 10-15 nested sub-packages is just not a big deal.  The 350% cost I
>  saw (noted in a response to Gordon) is a *huge* deal and would need to be
>  solved (moving to C would help) before this became standard.

I have code which caches directory contents, and related benchmarks.
This might help, and could be combined with a new Python module
for importing packages, say, as a new method "importer" in __init__.py.
Please see python-dev, "Caching directory files in import.c".

JimA

_______________________________________________
Import-sig mailing list
Import-sig@[...].org
http://mail.python.org/mailman/listinfo/import-sig

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved