Minor optimization of table loading

Is both faster and more memory efficient.
This commit is contained in:
Behdad Esfahbod 2013-12-17 00:44:33 -05:00
parent 0be386edb5
commit b4070bd629

View File

@ -497,14 +497,13 @@ def packULong(value):
class BaseTable(object):
def __init__(self):
self.compileStatus = 0 # 0 means table was created
# 1 means the table.read() function was called by a table which is subject
# to delayed compilation
compileStatus = 0 # 0 means table was created
# 1 means the table.read() function was called by a table
# which is subject to delayed compilation
# 2 means that it was subject to delayed compilation, and
# has been decompiled
self.recurse = 0
recurse = 0
def __getattr__(self, attr):
# we get here only when the table does not have the attribute.