summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2010-08-09 05:56:50 (GMT)
committerRaymond Hettinger <python@rcn.com>2010-08-09 05:56:50 (GMT)
commit31022301b59bb84a85be13e8da02b898ae07c7fc (patch)
tree36c163d37e7f525ab673d7f7238e8248d4b8851a /Misc
parent4f859ed9c7feba6e403895c4044608d29efd2ba9 (diff)
downloadcpython-31022301b59bb84a85be13e8da02b898ae07c7fc.zip
cpython-31022301b59bb84a85be13e8da02b898ae07c7fc.tar.gz
cpython-31022301b59bb84a85be13e8da02b898ae07c7fc.tar.bz2
Revert 83784 adding functools.lru_cache() to the re module.
The problem is that the re module is imported by sysconfig and re needs functools which uses collections.OrderedDict() but the _collectionsmodule.c code is not yet constructed at this point in the build. The likely best solution will be to include _collections as part of the static build before the rest of the boot-strapping.
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 57bcf8e..00188d4 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 forgetting the least recently
- used cached compiled regular expressions. This is a performance win for
+ 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.