4 ms·
You might be able to switch to Bun or Deno with relatively little effort and create binaries that are probably a lot smaller (and maybe also faster) with each o
by chrisldgk 2y ago
You might be able to switch to Bun or Deno with relatively little effort and create binaries that are probably a lot smaller (and maybe also faster) with each of their compile commands [1][2].
In the end I do also believe that a compiled language like Swift, Rust or Go might be a better fit though.
[1] https://docs.deno.com/runtime/reference/cli/compiler/ https://docs.deno.com/runtime/reference/cli/compiler/
[2] https://bun.sh/docs/bundler/executables https://bun.sh/docs/bundler/executables
- steelbrain 2y agoFWIW, `bun` produced larger output files ~/P/s/ffmpeg-over-ip bun build ./src/client.ts --compile --minify --sourcemap --bytecode --outfile ffmpeg-over-ip-client ; ls -lah | grep ffmpeg-over-ip-client [6ms] minify -90.92 KB (estimate) [3ms] bundle 6 modules [44ms] compile ffmpeg-over-ip-client -rwxrwxrwx 1 steelbrain staff 56M Oct 6 16:53 ffmpeg-over-ip-client and `deno` produced even bigger outputs ~/P/s/ffmpeg-over-ip deno compile --allow-read --allow-net ./lib/client.js ; ls -lah | grep client Compile file:///Users/steelbrain/Projects/steelbrain/ffmpeg-over-ip/lib/client.js to client -rwxr-xr-x 1 steelbrain staff 65M Oct 6 16:56 client