I find I get great results from explicitly asking an LLM to write tests which profile memory and cpu usage. Then ask it to optimise to improve those metrics.
tbh, it probably works. I'm vibe-coding a thing and just told it to figure out why it runs so slow: put in some optimizations. It ran some tests and stopped loading an entire-something at opening because there's no value to doing that.
just be aware of the exact prompt:
"memory usage is important": creates a 1TB binary
"take multiple steps": uses so much power, extreme global warming, it will just print "hot"
"think outside of the box": it will enslave you so you will not care about weather
It’s actually pretty good at this if you have some very specific constraints and objective.
I find I get great results from explicitly asking an LLM to write tests which profile memory and cpu usage. Then ask it to optimise to improve those metrics.
And a way for it to get actual measurable results / feedback loop, which is apparently quite tricky even for humans to get.
This: https://news.ycombinator.com/item?id=49226923
Fans went crazy when loading the browser demo
tbh, it probably works. I'm vibe-coding a thing and just told it to figure out why it runs so slow: put in some optimizations. It ran some tests and stopped loading an entire-something at opening because there's no value to doing that.
It does a pretty good job being put into a loop of "try to optimize for X" then "test and audit your code" then repeat.