Explain the Bottleneck
When asking for a performance optimization, explain WHY the current code is slow, not just that it is slow. Claude makes better optimization choices when it understands the root cause (nested iteration, repeated allocations, etc.) rather than guessing at the problem.
Where you'll practice this
One Promptles scenario teaches this principle directly.
Optimize the Loop
Your `processOrders` function in `batch.ts` takes an array of orders and enriches each one with product details. Currently, for each order, it uses `.find()` inside a `.map()` to look up the product: making it O(n*m) where n is orders and m is products. With 10,000 orders and…