Closed biqqles closed 3 years ago
This branch contains several changes with the aim of improving initialisation performance considerably. Preliminary discussion is in #12.
Library changes:
__init__
__new__
__call__
DataClassInit
Together, these changes mean that dataclassy performs equally with dataclasses when slots=False, and far better when slots=True.
slots=False
slots=True
To do:
__post_init__
This branch contains several changes with the aim of improving initialisation performance considerably. Preliminary discussion is in #12.
Library changes:
__init__
is now used for all initialisation, rather than__new__
and/or__call__
.DataClassInit
has been removed__init__
to another nameTogether, these changes mean that dataclassy performs equally with dataclasses when
slots=False
, and far better whenslots=True
.To do:
__post_init__