Skip to content

Commit 27ff728

Browse files
committed
better image & desc for server-only fast path
1 parent 33bf923 commit 27ff728

File tree

3 files changed

+18
-5
lines changed

3 files changed

+18
-5
lines changed
-5.6 KB
Loading
-6.15 KB
Loading

src/blog/tanstack-start-ssr-performance-600-percent.md

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -261,12 +261,25 @@ See: [#4648](https://github.com/TanStack/router/pull/4648), [#6505](https://gith
261261

262262
Taking the example of the `matchRoutesInternal` method, we can see that its children's total CPU time was reduced by ~25%.
263263

264-
<!-- TODO: these images aren't good. They don't really show an improvement that came from a server-only fast path. -->
264+
<figure>
265+
<img
266+
src="/blog-assets/tanstack-start-ssr-performance-600-percent/interpolate-before.png"
267+
alt="CPU profiling of interpolatePath before the changes"
268+
>
269+
<figcaption>
270+
<b>Before:</b> The <code>interpolatePath</code> function spends >1s using the generic <code>parseSegment</code> function.
271+
</figcaption>
272+
</figure>
265273
266-
| | |
267-
| ------ | -------------------------------------------------------------------------------------------------------------------------------------- |
268-
| Before | ![CPU profiling of interpolatePath before the changes](/blog-assets/tanstack-start-ssr-performance-600-percent/interpolate-before.png) |
269-
| After | ![CPU profiling of interpolatePath after the changes](/blog-assets/tanstack-start-ssr-performance-600-percent/interpolate-after.png) |
274+
<figure>
275+
<img
276+
src="/blog-assets/tanstack-start-ssr-performance-600-percent/interpolate-after.png"
277+
alt="CPU profiling of interpolatePath after the changes"
278+
>
279+
<figcaption>
280+
<b>After:</b> The <code>interpolatePath</code> function now uses the server-only fast path, skipping <code>parseSegment</code> entirely.
281+
</figcaption>
282+
</figure>
270283
271284
## Finding 4: `delete` can be expensive
272285

0 commit comments

Comments
 (0)