Store enum tags as a u16 instead of a u64 #785
Labels
compiler
Changes related to the compiler
feature
New things to add to Inko, such as a new standard library module
performance
Changes related to improving performance
Milestone
The compiler restricts the number of enum constructors to
u16::MAX
aka 65 535, but we still store the tag as a regularInt
, which is 64 bits. We should change this to use au16
instead, reducing the size of enums (depending on the alignment of any wrapped data of course).This should be done after #783 is merged.
The text was updated successfully, but these errors were encountered: