upvote
What happens if you keep asking AI to rewrite it to use less and less resources?
reply
It’s actually pretty good at this if you have some very specific constraints and objective.
reply
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.
reply