#performance

3 articles tagged “performance”.

The event loop drawn as a cycle: run one task, run every microtask, then render a frame
JavaScriptAdvanced

The JavaScript Event Loop: Tasks, Microtasks and Rendering

Why does a resolved promise always beat setTimeout(fn, 0)? Learn exactly how the event loop schedules tasks, microtasks and repaints, and how to keep long work from freezing the page.

7 min read
A B-tree index narrowing a search from a million rows down to a single leaf page
SQLAdvanced

SQL Indexes and Query Plans: Making Slow Queries Fast

Learn how B-tree indexes really work, read query plans with EXPLAIN, choose the right column order for composite indexes, and spot the mistakes that silently disable an index.

8 min read
Chart of growth curves for O(1), O(log n), O(n), O(n log n) and O(n squared)
AlgorithmsBeginner

Big-O Notation Explained with Real Code

Understand time complexity without the maths anxiety. We'll analyse real Python functions and see why O(n²) code falls apart at scale.

4 min read