Skip to content

Commit cefa9eb

Browse files
Sheraffactions-userautofix-ci[bot]
authored
Fix blog route matching article header (#769)
* chore: update @tanstack/* dependencies * fix(blog): route matching article header to fit new layout * ci: apply automated fixes * fix lockfile * fix lockfile * compress * compress for real --------- Co-authored-by: GitHub Action <action@github.com> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
1 parent 445cd00 commit cefa9eb

3 files changed

Lines changed: 3 additions & 1 deletion

File tree

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)