Post

Path matching in a router? How hard can it be 🤷‍♂️. Hard to do correctly. Very hard to do fast on top of that. This is a great blog post about the recent core refactoring done in @tanstack.com router 🔥

tanstack.comHow we accidentally made route matching more performant by aiming for correctness | TanStack BlogWe achieved a 20,000× performance improvement in route matching in TanStack Router. Let's be honest, this is definitely cherry-picked, but the number is real and comes from a real production applicati...

7 reposts61 likes

I wish we had just one path matching library for the entire ecosystem. It is the same problem, no matter the routing flavor. path-to-regexp used to be that library, but it's quite slow and I feel there's room for improvement. Remix folks published their route-pattern. Promising.