Tag: performance
Script Loading (defer, async, type=module)
How and when browser downloads and executes JavaScript — defer, async, and type=module control whether scripts block HTML parsing and in what order they run.
2mo ago
frontend intermediate
Scheduler API (scheduler.postTask)
ES2021
The Scheduler API (scheduler.postTask) lets you prioritise async tasks — user-blocking, user-visible, or background — giving the browser hints to schedule work optimally.
2mo ago
javascript advanced
Streams API — ReadableStream & WritableStream
HTML5
The Streams API provides composable, backpressure-aware data pipelines in the browser — processing large responses, files, or media chunk by chunk without buffering everything in memory.
2mo ago
javascript advanced
Stack Overflow from Deep Recursion
PHP 5.0+
PHP has no configurable stack size limit — deep recursion causes a fatal segfault or memory exhaustion, not a catchable exception.
2mo ago
php intermediate
Search-as-You-Type Patterns
1
Implementing instant search suggestions as users type — debouncing requests, prefix indexing, highlighting matches, and managing loading/empty states.
3mo ago
search intermediate
Service Workers & Offline Caching
ES2015
A JavaScript worker that intercepts network requests and serves responses from cache — enabling offline access, faster loads, and background sync.
3mo ago
frontend intermediate
Sparse Matrix Representations
COO, CSR, and DOK formats efficiently store matrices where most values are zero — avoiding storing terabytes of zeros for recommendation systems and graphs.
3mo ago
data_structures advanced
SPL Iterators In Depth
PHP 5.1+
PHP's Standard PHP Library iterators — SplFileObject, DirectoryIterator, RecursiveIteratorIterator, FilterIterator, and LimitIterator — for memory-efficient file and data traversal.
3mo ago
php intermediate
Swoole / OpenSwoole
PHP 7.4+
PHP extension with coroutines, async I/O, and built-in HTTP server — handling thousands of concurrent connections in one process.
3mo ago
performance advanced
Linear search is O(n) and works on any array. Binary search is O(log n) but requires a sorted array. Hash lookup is O(1) and the right choice for most in-memory searches.
3mo ago
algorithms intermediate
Slow Query Log
PHP 5.0+
A database log of queries exceeding a time threshold — the first place to look when diagnosing PHP application performance problems.
3mo ago
performance beginner
Space Complexity
A measure of how much memory an algorithm uses relative to its input size, expressed in Big O notation.
3mo ago
performance intermediate
SPL Data Structures
PHP 5.3+
PHP's Standard PHP Library provides efficient built-in data structures: SplStack, SplQueue, SplHeap, SplMinHeap, SplDoublyLinkedList, and more.
3mo ago
php advanced
SQL Window Functions
PHP 5.0+
SQL functions that perform calculations across a set of rows related to the current row without collapsing them into a single output row.
3mo ago
database advanced