This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author barry
Recipients arigo, barry, effbot, eric_noyau, georg.brandl, loewis
Date 2018-05-25.17:31:03
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1527269463.38.0.682650639539.issue1366311@psf.upfronthosting.co.za>
In-reply-to
Content
I'm reopening this bug even though it's been long closed and even though the attached patch is no longer relevant.

We recently found a degenerative performance problem with entrypoints and threads.  As the number of threads increases, it becomes increasingly horrible to extract entrypoints.  

https://github.com/takluyver/entrypoints

The problem is that entrypoints uses glob.iglob() to find the .{dist,egg}-info directory.  iglob() uses regexps on a fairly simple pattern.  GIL contention can cause entrypoint discovery with 16 threads to take ~10 seconds for all threads to complete.

We have some test cases that I'll try to attach later, but since my bugs archeology found this bug, I decided to reopen it rather than start with a new bug.
History
Date User Action Args
2018-05-25 17:31:03barrysetrecipients: + barry, loewis, effbot, arigo, georg.brandl, eric_noyau
2018-05-25 17:31:03barrysetmessageid: <1527269463.38.0.682650639539.issue1366311@psf.upfronthosting.co.za>
2018-05-25 17:31:03barrylinkissue1366311 messages
2018-05-25 17:31:03barrycreate