You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I recently forked your project to try to decrease the size of generated binaries. I went for a naive compression method consisting on counting how many characters to print before toggling to the other character. Due to the format having sometimes tens of thousands of the same character, I went of a stream of u32. The resulting integer stream would end up reducing the binary to about 3/4 of its current size.
I noticed the majority of the numbers could still fit in a u8 stream. So I decided to split overflowing numbers with a zero value between each chunk, creating more entries to the stream, but those entries took a quarter of their original size.
With this, I managed to reduce the binary size to 909 Ko (windows exe) so a bit less than 1/4 of the current binary size.
You can have a look at my fork here. If you want to integrate it to your repository I'll be happy to make a PR 😄
Note : Since I don't have Deno installed and also don't know well TypeScript I wrote my preloading script using PHP instead (tiny.php) to run it just type php -d memory_limit=-1 tiny.php.
Ideally we should write a build script for this.
Have a great day !
The text was updated successfully, but these errors were encountered:
Hello !
I recently forked your project to try to decrease the size of generated binaries. I went for a naive compression method consisting on counting how many characters to print before toggling to the other character. Due to the format having sometimes tens of thousands of the same character, I went of a stream of
u32
. The resulting integer stream would end up reducing the binary to about 3/4 of its current size.I noticed the majority of the numbers could still fit in a
u8
stream. So I decided to split overflowing numbers with a zero value between each chunk, creating more entries to the stream, but those entries took a quarter of their original size.With this, I managed to reduce the binary size to 909 Ko (windows exe) so a bit less than 1/4 of the current binary size.
You can have a look at my fork here. If you want to integrate it to your repository I'll be happy to make a PR 😄
Note : Since I don't have Deno installed and also don't know well TypeScript I wrote my preloading script using PHP instead (tiny.php) to run it just type
php -d memory_limit=-1 tiny.php
.Ideally we should write a build script for this.
Have a great day !
The text was updated successfully, but these errors were encountered: