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:
Boris Zbarsky 2014-06-23 16:03:56 -04:00
Родитель 7a407c784d
Коммит 1c9ae3ed33
1 изменённых файлов: 8 добавлений и 2 удалений

Просмотреть файл

@ -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 = []