AI created slow and expensive code. How I analyzed and fixed it.

· Dev.to