The upcoming patch release of Deno uses 2.3x less memory than Bun running the compiled executable of this example on Windows (70 MB vs 160MB after 60 seconds).
1 / 2
Comments
What optimization changes were made to decrease the memory usage in this upcoming patch?
Less .clone() 's ? (genuinely curious)
The new savings come from more efficient memory management of the module sources.
On Windows the binary size Deno outputs is 96 MB and Bun outputs 120 MB. We're slowly working on getting it lower.