Tag: Performance

2 articles

Error & Fix PHP Development 28 Nov 2026 · 3 min read

How to Fix 'Allowed Memory Size Exhausted' Error in PHP

Your PHP script dies with "Allowed memory size of 134217728 bytes exhausted" — and raising the limit only buys you time. This guide shows how to read the three numbers in the message, find the limit that actually applies to your runtime, raise it in the right place, and then fix the code that eats the memory in the first place: generators, chunked queries, and streaming file reads.

Tutorial JavaScript 27 Nov 2026 · 8 min read

How to Debounce in JavaScript: Build a Search Input That Stops Firing on Every Keystroke

Type ten letters into a search box and your code fires ten API requests — nine of them for queries nobody will ever see. This tutorial shows how to debounce in JavaScript from scratch: a reusable debounce function, a search input that waits for the user to pause, leading vs trailing calls, a cancel method, the three mistakes that silently break debounce, and a small React hook version.