pointers.py
pointers.py copied to clipboard
Optimize struct implementation
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__