Bug 899858 - Cache pymake len() computation to speed up parsing. r=benjamin

This commit is contained in:
Benoit Girard 2013-08-06 15:25:57 -04:00
parent f2638ccd28
commit fbf11cf094

View File

@ -573,7 +573,8 @@ class Pattern(object):
def __init__(self, s):
r = []
i = 0
while i < len(s):
slen = len(s)
while i < slen:
c = s[i]
if c == '\\':
nc = s[i + 1]