mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 899858 - Cache pymake len() computation to speed up parsing. r=benjamin
This commit is contained in:
parent
f2638ccd28
commit
fbf11cf094
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user