On Tue, Apr 17, 2012 at 13:39, Antoine Pitrou <solip...@pitrou.net> wrote:
> On Tue, 17 Apr 2012 11:41:32 -0400 > Brett Cannon <br...@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@python.org > http://mail.python.org/mailman/listinfo/python-dev > Unsubscribe: > http://mail.python.org/mailman/options/python-dev/brett%40python.org >
_______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com