[issue11258] ctypes: Speed up find_library() on Linux by 500%
Jonas H.
report at bugs.python.org
Sun Feb 27 18:10:10 CET 2011
Jonas H. <jonas at lophus.org> added the comment:
> the orig impl matches the abi_type at the beginning of the parentheses,
> yours simply ignores the abi_type (that should have caught my eye, but that
> regex looked so much like magic that I didn't try to make sense of it :-))
Same here. :)
The version I attached seems to work for me. It's some kind of compromise -- basically it's the original regex but with the unneccessary, performance-decreasing cruft stripped away.
btw, "Jonas H." is perfectly fine - I don't care about being honored, I just want to `import uuid` without waiting forever. :-)
----------
Added file: http://bugs.python.org/file20935/faster-find-library1-py3k-with-escaped-name-try2.diff
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11258>
_______________________________________
More information about the Python-bugs-list
mailing list