Overview of Elysia 1.3 performance improvements
mainElysia 1.3 focuses on refinement and performance optimizations rather than new features. Key improvements include:
- Exact Mirror: A drop-in replacement for TypeBox normalization that is significantly faster (up to 500x for small objects).
- Dual Router Strategy: Automatically attempts to use Bun's native router (if available) for dynamic routes, falling back to Elysia's router.
- Standalone Validator: Allows merging schemas in guards instead of overriding them.
- Reduced Type Instantiation: Up to 60% improvement in type inference speed and reduced memory usage for large-scale applications.
- Route Registration & Instance Optimization: Significant reductions in memory usage (up to 5.6x for routes, 10x for instances) and faster startup/plugin creation times.
- Sucrose Cache: Reduces re-computation by caching compiled routes using checksums.