OneOS icon indicating copy to clipboard operation
OneOS copied to clipboard

shaves ~1kb off JSON

Open skwerlman opened this issue 9 years ago • 1 comments

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

skwerlman avatar Oct 13 '14 00:10 skwerlman

Thanks! This looks really useful, I'll look in to merging this afternoon.

oeed avatar Oct 13 '14 02:10 oeed