On Tue, Apr 17, 2012 at 13:39, Antoine Pitrou <solipsis at pitrou.net> wrote: > On 2012年4月17日 11:41:32 -0400 > Brett Cannon <brett at python.org> wrote: > > > > Actually Cython would help with a subtle maintenance burden of > maintaining > > *any* C code for import. Right now, > > Python/import.c:PyImport_ImportModuleLevelObject() is an accelerated C > > version of importlib.__import__() through checking sys.modules, after > which > > it calls into the Python code. Cython would do away with that C > > acceleration code (which I have already had to modify once and Antoine > > found a couple refleaks in). >> Would it? That's assuming Cython would be smart enough to do the > required optimizations. > Yes, it is an assumption I'm making. I also assume we wouldn't make a change like this w/o taking the time to run importlib through Cython and seeing how the performance numbers come out. -Brett >> Regards >> Antoine. >>> _______________________________________________ > Python-Dev mailing list > Python-Dev at python.org > http://mail.python.org/mailman/listinfo/python-dev > Unsubscribe: > http://mail.python.org/mailman/options/python-dev/brett%40python.org >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-dev/attachments/20120417/ad751bc4/attachment.html>