summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2010-08-09 04:24:42 (GMT)
committerRaymond Hettinger <python@rcn.com>2010-08-09 04:24:42 (GMT)
commit4f859ed9c7feba6e403895c4044608d29efd2ba9 (patch)
treeaaee5286d013042596ea90003cba16e0fa44235d /Misc
parentcca65313c4de70acc986c76d0dca43cc4cf39e85 (diff)
downloadcpython-4f859ed9c7feba6e403895c4044608d29efd2ba9.zip
cpython-4f859ed9c7feba6e403895c4044608d29efd2ba9.tar.gz
cpython-4f859ed9c7feba6e403895c4044608d29efd2ba9.tar.bz2
Issue 9396. Apply functools.lru_cache in the place of the
random flushing cache in the re module.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS4
1 files changed, 2 insertions, 2 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index 00188d4..57bcf8e 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -697,8 +697,8 @@ 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
+ simply clearing the entire cache on overflow to forgetting the least recently
+ used 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.