Tag: memory
🤖 AI Guestbook — #memory educational data only
|
|
Last 30 days
Agents 8
Claude 8
PetalBot 5Google 1Ahrefs 1
Scrapy 181Amazonbot 180Perplexity 139Google 109Ahrefs 92SEMrush 76ChatGPT 66Unknown AI 45Claude 39Meta AI 31Bing 29PetalBot 21Majestic 19Sogou 4Common Crawl 2Qwen 1
Most referenced — #memory
__slots__ & Memory Optimisation 1Memory Management — Stack vs Heap 1Object Pooling 1Garbage Collection 1Generators & yield 1Memory-Mapped Files 1PHP Generators 1Memory Pressure Detection 1
How they use it
crawler 955
crawler_json 67
pre-tracking 12
Tag total1k pings
Terms pinged24 / 24
Distinct agents15
Memory Pressure Detection
PHP 7.0+
Proactively identifying when a PHP process approaches its memory limit so corrective action can be taken before a fatal error.
2mo ago
Performance intermediate
Memory Management in JavaScript
JavaScript uses automatic garbage collection — the engine reclaims memory when objects are no longer reachable. Memory leaks occur when references are unintentionally retained, preventing collection.
3mo ago
JavaScript intermediate
Memory-Mapped Files
A file mapped directly into a process's virtual address space — reads and writes go through the OS page cache rather than read()/write() syscalls, enabling fast access to large files and shared memory between processes.
3mo ago
Linux advanced
PHP Generators
PHP 5.5+
1
Functions using yield that produce values lazily — one at a time — instead of building a complete array in memory.
3mo ago
PHP intermediate
Copy-on-Write (CoW) in PHP Arrays
PHP 7.0+
1
PHP arrays are not copied when assigned or passed to functions — they share the same internal buffer until one copy is modified. Only then does PHP perform a real copy. This makes reading large arrays cheap but silent mutations expensive.
3mo ago
PHP intermediate
Generators & yield (PHP 5.5)
PHP 5.5+
Generators (PHP 5.5) use yield to produce values lazily — enabling memory-efficient iteration over large datasets without loading everything into memory.
3mo ago
PHP intermediate
Memory Exhaustion
PHP 4.0+
1
PHP's Allowed Memory Size Exhausted fatal error — caused by loading too much data into memory at once, unbounded loops accumulating objects, or memory leaks in long-running processes.
3mo ago
PHP intermediate
PHP Garbage Collection Internals (Cycle Collector)
PHP 5.3+
1
PHP uses reference counting as its primary memory management strategy — when a value's reference count drops to zero it is freed immediately. A secondary cycle collector handles circular references that reference counting alone cannot free.
3mo ago
PHP advanced
PHP Memory Model — Zval & Copy-on-Write
PHP 7.0+
2
PHP stores every value in a zval (Zend value) container that holds the type, value, and a reference count. Arrays and strings are copied lazily — the copy only happens when one copy is modified (copy-on-write), making passing large values cheap until mutation.
3mo ago
PHP advanced
Circular References & Memory Implications
PHP 5.3+
1
Circular references between objects prevent PHP's reference counting GC from freeing memory — PHP's cycle collector handles them but with overhead.
3mo ago
PHP intermediate
Memory Leaks — Closures, Detached DOM
ES2015
JavaScript memory leaks occur when references are accidentally retained — common causes: closures holding large objects, detached DOM nodes, forgotten event listeners, and growing Maps/Sets.
3mo ago
JavaScript 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().
3mo ago
PHP intermediate
__slots__ & Memory Optimisation
Python 3.0+
1
Declaring __slots__ on a class prevents the dynamic __dict__ per instance — reducing memory usage by 40-60% for classes with many instances.
3mo ago
Python intermediate
Memory Management — Stack vs Heap
PHP 5.0+
2
The stack holds function call frames with fixed-size local variables — fast, automatic, limited. The heap holds dynamically allocated objects — flexible, managed by GC, slower.
3mo ago
Compiler intermediate
WeakRef & FinalizationRegistry
ES2021
WeakRef holds a weak reference allowing GC to collect the object — used for memory-safe caches. FinalizationRegistry runs a callback when an object is collected.
3mo ago
JavaScript advanced
Flyweight Pattern
A structural pattern that shares common state between many objects rather than storing it in each instance — dramatically reducing memory for large numbers of similar objects.
3mo ago
Code Quality advanced
Automatic memory management that reclaims objects no longer reachable by the program — PHP uses reference counting with a cycle collector for circular references.
3mo ago
Compiler advanced
Generators allow iterating over large datasets lazily using yield, without loading everything into memory at once.
3mo ago
PHP intermediate
Memory Leak
PHP 5.0+
11
Memory allocated during execution that is never released, causing PHP processes to grow until they exhaust available memory or are restarted.
3mo ago
Performance intermediate
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