pointers.py icon indicating copy to clipboard operation
pointers.py copied to clipboard

Optimize struct implementation

Open ZeroIntensity opened this issue 3 years ago • 0 comments

Struct currently repeats dataclass logic every time it instantiates. instead, it should only do it once and store it in a class variable.

validation is also only executed when the class is instantiated, instead of when its created. most of this fix will just be moving things over to __init_subclass__ instead of __init__

ZeroIntensity avatar Sep 25 '22 18:09 ZeroIntensity