Minor optimization of table loading
Is both faster and more memory efficient.
diff --git a/Lib/fontTools/ttLib/tables/otBase.py b/Lib/fontTools/ttLib/tables/otBase.py
index cf4a662..36870f2 100644
--- a/Lib/fontTools/ttLib/tables/otBase.py
+++ b/Lib/fontTools/ttLib/tables/otBase.py
@@ -497,14 +497,13 @@
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
- # 2 means that it was subject to delayed compilation, and
- # has been decompiled
- self.recurse = 0
+ 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
+ recurse = 0
def __getattr__(self, attr):
# we get here only when the table does not have the attribute.