Tag: performance
OLAP vs OLTP
OLTP (Online Transaction Processing) optimises for many small, fast read/write operations — your main application database. OLAP (Online Analytical Processing) optimises for few, large analytical queries scanning millions of rows — your reporting and analytics database.
2mo ago
database intermediate
OPcache Internals — How Bytecode Caching Works
PHP 5.5+
OPcache compiles PHP source files to bytecode once and stores the result in shared memory — subsequent requests skip parsing and compilation entirely, making PHP 5–10x faster for I/O-bound workloads.
2mo ago
php intermediate
OPcache Preloading (PHP 7.4)
PHP 7.4+
OPcache preloading (PHP 7.4) compiles PHP files into shared memory at server start — eliminating per-request compilation of framework core files for significant performance gains.
2mo ago
php advanced
Out of Memory Errors (memory_limit)
PHP 5.0+
PHP enforces memory_limit in php.ini — exceeding it triggers a fatal E_ERROR that cannot be caught with set_error_handler().
2mo ago
php intermediate
OPcache stores compiled PHP bytecode in shared memory, eliminating recompilation on every request — proper tuning is the single highest-impact PHP performance configuration.
3mo ago
php intermediate
Opcode Optimisation
PHP 5.5+
1
PHP's compiler applies optimisation passes to the opcode array before caching — constant folding, dead code elimination, and pass-through minimisation reduce instruction count.
3mo ago
compiler advanced
Object Pooling
PHP 7.0+
Reusing a fixed set of pre-initialised expensive objects rather than creating and destroying them on every request — reducing allocation overhead.
3mo ago
performance advanced
Opcode Caching
PHP 5.5+
1
Storing precompiled PHP bytecode in memory to skip the parse-and-compile phase on subsequent requests.
3mo ago
performance intermediate
Output Buffering (ob_start / ob_flush)
PHP 4.0+
Capturing PHP output into a buffer rather than sending it immediately, enabling manipulation before delivery or header modification.
3mo ago
php intermediate
OPcache
PHP 5.5+
6
A PHP extension that caches precompiled bytecode in shared memory, eliminating repeated parsing and compilation overhead.
3mo ago
php intermediate