зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1026706
. Stop pickling our yacc grammar in the WebIDL parser, because now it's apparently faster to recreate it than to unpickle it. r=khuey
This commit is contained in:
Родитель
7a407c784d
Коммит
1c9ae3ed33
|
@ -5005,8 +5005,14 @@ class Parser(Tokenizer):
|
|||
self.parser = yacc.yacc(module=self,
|
||||
outputdir=outputdir,
|
||||
tabmodule='webidlyacc',
|
||||
errorlog=yacc.NullLogger(),
|
||||
picklefile='WebIDLGrammar.pkl')
|
||||
errorlog=yacc.NullLogger()
|
||||
# Pickling the grammar is a speedup in
|
||||
# some cases (older Python?) but a
|
||||
# significant slowdown in others.
|
||||
# We're not pickling for now, until it
|
||||
# becomes a speedup again.
|
||||
# , picklefile='WebIDLGrammar.pkl'
|
||||
)
|
||||
self._globalScope = IDLScope(BuiltinLocation("<Global Scope>"), None, None)
|
||||
self._installBuiltins(self._globalScope)
|
||||
self._productions = []
|
||||
|
|
Загрузка…
Ссылка в новой задаче