You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As maciejh mentioned on Reddit, the TokenKind enumeration is too big for what it contains. This will be partly solved by string interning (#279), but it can be further optimized by replacing the regex flags by a more optimized structure.
The comment:
Your TokenKind enum is 7 words wide (56 bytes on 64bit arch), you can easily drop this by 3 words if you turn Regex flags into an inline buffer (you can probably manage with [u8; 7], one byte for length, 6 for content). Edit: shave another word by turning Strings into Box<str>s.
Activity