Heap Discipline

Memory allocation discipline for the ESP32-C3 (~380KB RAM, no PSRAM, single 48KB framebuffer). Use whenever writing or reviewing code that allocates: new / malloc / std::vector / std::string, buffers, caches, or anything held across a loop or an activity lifecycle. Covers makeUniqueNoThrow vs raw new/malloc, fragmentation avoidance, reserve-before-push_back, alloc-once-reuse, stack vs heap sizing, and the chunked grayscale buffer pattern.

crosspoint-reader 1df3443 3.5 KB Updated

File contents

crosspoint-reader/crosspoint-reader/tree/main/.skills/heap-discipline commit 1df34437e5

Frequently asked questions

npx skillmds@latest add crosspoint-reader/heap-discipline