Author vstinner
Recipients ethan.furman, vstinner
Date 2016-11-07.23:08:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1478560101.77.0.456510195055.issue28637@psf.upfronthosting.co.za>
In-reply-to
Content
The changeset 223731925d06 of the issue issue #28082 "use IntFlag for re constants" made Python startup 34% slower:

- rev 5637c9b4dd4c: Median +- std dev: 19.5 ms +- 0.0 ms
- rev 223731925d06: Median +- std dev: 26.2 ms +- 0.0 ms

The change adds "import enum" in Lib/re.py, so the enum module is imported, whereas it wasn't before. It seems like importing enum takes 6.7 ms.

I propose to revert the change 223731925d06 in Python 3.6 and reopen the issue #28082 to try to find another solution for the re module which doesn't impact Python startup performance.
History
Date User Action Args
2016-11-07 23:08:21vstinnersetrecipients: + vstinner, ethan.furman
2016-11-07 23:08:21vstinnersetmessageid: <1478560101.77.0.456510195055.issue28637@psf.upfronthosting.co.za>
2016-11-07 23:08:21vstinnerlinkissue28637 messages
2016-11-07 23:08:21vstinnercreate