Optimizing Lua string literals to save 400 bytes

(purplesyringa.moe)

19 points | by ibobev 3 days ago

2 comments

  • Rygian 10 minutes ago
    > 125 KB of disk space on a diskette.

    > I use SI prefixes for bytes. You should too!

    The prefix for 1000 is lowercase.

  • pillmillipedes 1 hour ago
    interesting! have you tried putting the compressed payload into a large block comment at the end/start of the file, and recovering it by loading your own source as bytes to prevent the compiler from mangling the payload? I'm not sure if that would work but could be worth a try...