-
Notifications
You must be signed in to change notification settings - Fork 46
Open
Description
The udata variable obviously has size issues, already pointed out in #17, but I was thinking that pre-compressing it in the build phase would be able to significantly cut it down in size. For example, using the following process to compress that variable's content:
- Stringify the JSON.
- Compress it with bzip2 (near the top in both speed and efficiency).
- Base64-encode it. This will help remove some redundancy.
- Include that as a string in the built source.
And then, on load or first use on the target side:
- Decode it.
- Decompress it. (should be significantly faster than compression)
- Parse the JSON.
- Ready to use.
Metadata
Metadata
Assignees
Labels
No labels