• Gregory P. Smith's avatar
    The default size of the re module's compiled regular expression cache has · 5a63183a
    Gregory P. Smith yazdı
    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.
    5a63183a
test_re.py 42.1 KB