next.js
b6883969 - perf(router): add two-tier caching for route matching performance

Commit
138 days ago
perf(router): add two-tier caching for route matching performance - Add WeakMap cache for route matcher functions in getRouteMatcher - Add LRU cache for route regexes in getRouteRegex - Improve TypeScript types with readonly modifiers and documentation - Implement cache flow: route pattern → LRU hit → WeakMap hit → cached function
Author
Committer
Parents
Loading