You are working on an admin dashboard that displays orders.
The API can return several thousand orders in under a second. The table initially worked well with a few hundred rows, but users report that the page becomes noticeably slow when there are thousands of orders.
You have been asked to investigate the code below and identify the most likely performance bottleneck.