diff options
author | Gregory P. Smith <greg@mad-scientist.com> | 2010-07-27 05:31:29 (GMT) |
---|---|---|
committer | Gregory P. Smith <greg@mad-scientist.com> | 2010-07-27 05:31:29 (GMT) |
commit | 5a63183a8b8a9e177f97feac975850df5e6f98aa (patch) | |
tree | 5cc448b4d1c43daf25f07973360871bf449c773d /Misc | |
parent | f5ae1efd417b06cef5164cac79e2cc46afa6dd80 (diff) | |
download | cpython-5a63183a8b8a9e177f97feac975850df5e6f98aa.zip cpython-5a63183a8b8a9e177f97feac975850df5e6f98aa.tar.gz cpython-5a63183a8b8a9e177f97feac975850df5e6f98aa.tar.bz2 |
The default size of the re module's compiled regular expression cache has
been increased from 100 to 500 and the cache replacement policy has changed
from simply clearing the entire cache on overflow to randomly forgetting 20%
of the existing cached compiled regular expressions. This is a performance
win for applications that use a lot of regular expressions and limits the
impact of the performance hit anytime the cache is exceeded.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -473,6 +473,13 @@ C-API Library ------- +- The default size of the re module's compiled regular expression cache has + been increased from 100 to 500 and the cache replacement policy has changed + from simply clearing the entire cache on overflow to randomly forgetting 20% + of the existing cached compiled regular expressions. This is a performance + win for applications that use a lot of regular expressions and limits the + impact of the performance hit anytime the cache is exceeded. + - Issue #7113: Speed up loading in configparser. Patch by Ćukasz Langa. - Issue #9032: XML-RPC client retries the request on EPIPE error. The EPIPE |