You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/blog/tanstack-start-ssr-performance-600-percent.md
+2-4Lines changed: 2 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,7 +35,6 @@ We did it with a repeatable process, not a single clever trick:
35
35
36
36
The changes span over 20 PRs; we highlight the highest-impact patterns below.
37
37
38
-
39
38
<!-- the "What we optimized" section and "Methodology" feel a little redundant because "what we optimized" doesn't actually say what we optimized, just *how* we did it, which is part of the methodology. -->
40
39
41
40
## What we optimized (and what we did not)
@@ -87,7 +86,6 @@ The resulting flamegraph can be read with a tool like [Speedscope](https://www.s
87
86
- Fix one hotspot, re-run, and re-profile.
88
87
- Prefer changes that remove work in the steady state, not just shift it.
89
88
90
-
91
89
<!-- what do we want to say with these flamegraphs? How to understand them? We're already showing flamegraphs for every *finding* below. I'm not really sure what to say here. -->
92
90
93
91
Placeholders you should replace with real screenshots:
@@ -197,7 +195,7 @@ Taking the example of the `useRouterState` hook, we can see that most of the cli
197
195
198
196
### The mechanism
199
197
200
-
Client code cares about bundle size. Server code cares about CPU time per request. Those constraints are different (this is a *general* rule, not a *universal* one).
198
+
Client code cares about bundle size. Server code cares about CPU time per request. Those constraints are different (this is a _general_ rule, not a _universal_ one).
201
199
202
200
If you can guard a branch with a **build-time constant** like `isServer`, you can:
203
201
@@ -338,4 +336,4 @@ There were many other improvements (client and server) not covered here. SSR per
338
336
339
337
[^elu]: Event-loop utilization is the percentage of time the event loop is busy utilizing the CPU. See this [nodesource blog post](https://nodesource.com/blog/event-loop-utilization-nodejs) for more details.
340
338
341
-
[^empty-node-http-server]: To get a reference for the values we were measuring, we ran a similar `autocannon` benchmark on the smallest possible node http server: `require('http').createServer((q,s)=>s.end()).listen(3000)`. This tells us the *theoretical* maximum throughput of the machine and test setup.
339
+
[^empty-node-http-server]: To get a reference for the values we were measuring, we ran a similar `autocannon` benchmark on the smallest possible node http server: `require('http').createServer((q,s)=>s.end()).listen(3000)`. This tells us the _theoretical_ maximum throughput of the machine and test setup.
0 commit comments