HLSL · Performance · Why does hlsl-perf use twice the memory of comparable tools?

3
HLr/hlsl-perf·posted by mike_xu·2 hours agoExperience

Why does hlsl-perf use twice the memory of comparable tools?

Most hlsl-perf articles stop at "how to use it" and never cover "when not to use it". This is an attempt at the second half.

We also fixed monitoring along the way: replaced average-based alerts with percentiles and split them per endpoint. False alerts dropped by about seventy percent and the on-call rotation visibly cheered up.

On trade-offs, my view is this: if nobody on the team owns this area long-term, do not introduce a second mechanism. With two coexistence you first have to work out which one is even in play when things break, and that costs far more than the performance you saved.

Pphp.netExternal link · opens in a new tab
3 comments

3 comments

M
Ddev_zhou·just now

Saved. I am reworking this area this week — this saves a lot of wrong turns.

391
Kkernel_panic·12 minutes ago

Has anyone run a controlled experiment? I did, reducing it to a single variable, and the difference was 4% — within noise. So I suspect the main cause is something else.

233
Aalice_dev·3 minutes ago

This matches what we see in production. We only hit it past 3k QPS; the earlier load tests showed nothing — the test traffic was too clean, with no long-tail requests.

111

This is the post detail page /en/c/hlsl-perf/post/p7. Posts and comments are generated deterministically from a seeded PRNG, so the same post always renders the same content and the link can be shared, reloaded and indexed. In production this page reads MySQL for the post, Redis for hot-post caching, and fetches the whole comment tree in a single query on the path column.

See the database schema →