OneOS
OneOS copied to clipboard
shaves ~1kb off JSON
to do this I:
- removed some unnecessary locals
- renamed all the local functions (they could be shorter, though)
- renamed most variables
- proxied the string and table APIs
- proxied a number of common functions
- stored common strings in vars
In addition, I:
- separated the functions to their own lines (at no cost!)
- did this by hand, because I forgot about squishy, and also b/c it can't do the string thing
- renamed function references in strings so errors would still make sense
~~I could probably make this smaller, but I want to get to bed soon~~ I think it's close enough to its minimum size for now
Thanks! This looks really useful, I'll look in to merging this afternoon.