Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Represent opcodes as integers in wire-format #392
This introduces the idea of representing the wire-format opcodes as an integer instead of a string. Consider the following:
Today pre-compiles to:
After this PR
In my experiments this will have a slight decrease in gzip size in a large application, however does has a decent size win post-unzipping and residing in memory.
The second commit introduces an enum for the most common html tags. This would produce the following:
Running this against travis-web here are the app sizes:
Commit 2 doesn't really provide as much value in its current state so I'm likely to just land the opcodes change. I have some ideas to further drop the size and deal with the repetition of user-land strings, but is out of scope for this set of changes.