Speed Up a Slow List

Talk it through out loud with your AI coach.

The problem

  • hard
  • Pro

A page has a filter text box above a list of ten thousand products. The parent component holds the filter text in state, filters the products on every render, and renders every matching row. Typing in the box feels laggy: each keystroke takes hundreds of milliseconds. Explain how you would find the cause and make typing feel instant.

What a strong answer covers

  • Measuring which components render and how long they take before changing anything.
  • Cutting renders that don't need to happen.
  • Rendering fewer rows at a time.
  • Keeping typing responsive while the expensive update catches up.
  • The costs of these techniques and when the work belongs elsewhere.

Common mistake: Wrapping everything in memoisation without profiling, adding cost without fixing the real bottleneck.

Knowing this is half of it. Saying it clearly out loud is the part the coach helps you practise.

Practise it out loud