diff --git a/public/blog-assets/tanstack-router-route-matching-tree-rewrite/header.png b/public/blog-assets/tanstack-router-route-matching-tree-rewrite/big-number.png similarity index 100% rename from public/blog-assets/tanstack-router-route-matching-tree-rewrite/header.png rename to public/blog-assets/tanstack-router-route-matching-tree-rewrite/big-number.png diff --git a/public/blog-assets/tanstack-router-route-matching-tree-rewrite/header.jpg b/public/blog-assets/tanstack-router-route-matching-tree-rewrite/header.jpg new file mode 100644 index 000000000..5ba4bcedb Binary files /dev/null and b/public/blog-assets/tanstack-router-route-matching-tree-rewrite/header.jpg differ diff --git a/src/blog/tanstack-router-route-matching-tree-rewrite.md b/src/blog/tanstack-router-route-matching-tree-rewrite.md index b00cc81fd..a1b9e49db 100644 --- a/src/blog/tanstack-router-route-matching-tree-rewrite.md +++ b/src/blog/tanstack-router-route-matching-tree-rewrite.md @@ -6,10 +6,12 @@ authors: - Florian Pellet --- -![Big performance number](/blog-assets/tanstack-router-route-matching-tree-rewrite/header.png) +![Fantasy landscape illustration used as the article header](/blog-assets/tanstack-router-route-matching-tree-rewrite/header.jpg) 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. +![Big performance number](/blog-assets/tanstack-router-route-matching-tree-rewrite/big-number.png) + ## The Real Problem: correctness, not speed 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.