Here's my code: ```[code snippet]```. It works, but it's slow/inefficient. How can I optimize it for better performance?