cryck / sticker-composer

CS2 sticker composer to build names or strings
https://cs-sticker.com
MIT License
28 stars 8 forks source link

Reducing deep result transfer size by order of magnitude. #25

Closed seambr closed 9 months ago

seambr commented 9 months ago

I reduced the deep result transfer size by mapping to sticker ids rather than sticker objects, on the front end i then map the ids back to stickers. The mapping is in a triple for loop though so lmk if its too slow, it can also be done in a double for loop on a per page basis. File size is like 20Mb to 2Mb, and the worker.js time decreases by a significant amount