David Sherret @dsherret.dev · Oct 25

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).

13 likes 2 replies

?

Replies

WhiteSponge · Oct 25

I heard Deno is built in Rust? What optimization changes were made to decrease the memory usage in this upcoming patch? Less .clone() 's ? (genuinely curious)

David Sherret · Oct 25

The current Deno 2.0.2 outputs 104 MB after 60s, so this is about a 33% reduction from that. The new savings come from more efficient memory management of the module sources.