Prompts focused on speed and efficiency.
8votes
0answers
968views

Inline SVG sparklines inside a table that stay readable at 20px tall

I needed a trend sparkline in the last column of a dense metrics table, one row per service. Every generated version either drew axes (pointless at that size) or normalized each row independently so a
46votes
0answers
3.9kviews

Prompt for a React render-performance audit that names the actual wasted re-renders

Performance is a feature on my team, and "make it faster" prompts just sprinkled useMemo everywhere, including on primitives, which made the code worse and slower to read for zero gain. I reframed it
12votes
0answers
1.3kviews

Measure-before-optimize prompt so the model stops tuning cold code

I asked a local Llama-3 70B to "make this data pipeline faster" and it micro-optimized a list comprehension that runs once at startup while ignoring the O(n^2) join in the hot loop. Textbook: it optim
9votes
0answers
1.4kviews

Responsive camera framing in three.js so a scene fills phone portrait and desktop wide equally

My 3D product scene looked perfect on my 16:9 monitor and then the hero object was tiny and floating in the corner on a phone in portrait. Classic: I was only adjusting aspect on resize, not the actua