diff options
author | Raymond Hettinger <python@rcn.com> | 2010-08-09 04:24:42 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2010-08-09 04:24:42 (GMT) |
commit | 4f859ed9c7feba6e403895c4044608d29efd2ba9 (patch) | |
tree | aaee5286d013042596ea90003cba16e0fa44235d /Misc | |
parent | cca65313c4de70acc986c76d0dca43cc4cf39e85 (diff) | |
download | cpython-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/NEWS | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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. |