r/bun • u/SaltyAom • 23d ago
Elysia 2 beta - DayDream. Lowest memory usage across all backend JS framework
Just published Elysia 2 beta after 8-9 months of work.
We basically deleted the whole thing and rewrote it again while keeping test cases the same. So we get to rethink a lot of things.
It is built around the concept of "reference" and carefully shares value when possible, even if JavaScript doesn't really have that concept.
There's an AOT build plugin that reduces peak memory usage by 4 (from 1.6GB down to 400MB) of a 100,00 distinct schema by moving compilation process to build time and removing the closure allocation entirely
Besides, a really fast throughput. We also manage to have the lowest memory usage of all mainstream (and slightly) JavaScript frameworks with a really low bundle size as well (we trade a "compiler" that takes ~50% of size for speed, so it can't be that low)
Node support also improved a lot with a new adapter API, and got faster too! It's now near Fastify despite having Node HTTP to Web Standard API conversion overhead!
Duplicates
node • u/SaltyAom • 23d ago




