Lessons I learn from improving legacy product and doubling its performance
summary
An embedded central unit that used to crash around 5,000 endpoints reaches stable support for 10,000 endpoints with no resets and no data loss. Fixes are concrete: a load simulator that reproduces 6–12k endpoints on the bench, a new/delete profiler (overloading allocators to log sizes and set breakpoints) to find big allocations and leaks, and a SQLite-backed queue on SD to separate logic from unreliable network. Other wins: merge competing threads, chunk large messages, replace heavy Qt allocations with leaner C++ and cut prepare time from ~2 minutes to ~40 seconds.
AI-written summary · about
