mirror of
https://github.com/ammaraskar/pyCraft.git
synced 2024-11-16 07:15:24 +01:00
the class 'Type' needs to have '__slots__ = ()', otherwise every instance of 'Position' will have an unnecessary empty '__dict__' allocated
This commit is contained in:
parent
2f0dbf5cbb
commit
64cf23436b
@ -8,6 +8,8 @@ from collections import namedtuple
|
||||
|
||||
|
||||
class Type(object):
|
||||
__slots__ = ()
|
||||
|
||||
@staticmethod
|
||||
def read(file_object):
|
||||
raise NotImplementedError("Base data type not serializable")
|
||||
|
Loading…
Reference in New Issue
Block a user