Skip to content

Commit c1d0ffa

Browse files
committed
fix(blog): route matching article header to fit new layout
1 parent 2058dab commit c1d0ffa

3 files changed

Lines changed: 3 additions & 1 deletion

File tree

33.5 KB
Loading
3.2 MB
Loading

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

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

8-
![Big performance number](/blog-assets/tanstack-router-route-matching-tree-rewrite/header.png)
8+
![Header](/blog-assets/tanstack-router-route-matching-tree-rewrite/header.png)
99

1010
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.
1111

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

1416
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)