premature optimization

Adding speed tricks before measuring that there is a real performance problem.

In more detail

Memoizing everything adds memory use, comparison work and stale-closure risk for often no gain. Profile first and optimise the hotspots you find.

Related terms

Taught in

References