Skip to content

Commit 147c1bc

Browse files
authored
Merge branch 'main' into feat/maintainer-card-linkedin-icon
2 parents 29ef2a9 + cefa9eb commit 147c1bc

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

public/blog-assets/tanstack-router-route-matching-tree-rewrite/header.png renamed to public/blog-assets/tanstack-router-route-matching-tree-rewrite/big-number.png

File renamed without changes.
290 KB
Loading

src/blog/tanstack-router-route-matching-tree-rewrite.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,12 @@ authors:
66
- Florian Pellet
77
---
88

9-
![Big performance number](/blog-assets/tanstack-router-route-matching-tree-rewrite/header.png)
9+
![Fantasy landscape illustration used as the article header](/blog-assets/tanstack-router-route-matching-tree-rewrite/header.jpg)
1010

1111
We 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 application. More importantly, it shows that matching a pathname to a route is no longer bottlenecked by the number of routes in your application.
1212

13+
![Big performance number](/blog-assets/tanstack-router-route-matching-tree-rewrite/big-number.png)
14+
1315
## The Real Problem: correctness, not speed
1416

1517
One big responsibility of a router is to match a given URL pathname (e.g., `/users/123`) to a route definition (e.g., `/users/$userId`). This is deceptively complex when you consider all the different types of route segments (static, dynamic, optional, wildcard) and the priority rules that govern which route should match first.

0 commit comments

Comments
 (0)