3 ms·
I built a commercial memory allocator library (for MacOS pre X/Codewarrior called HeapManager) in the 90's. I built like 20 different test apps with varying wor
by coldcode 6y ago
I built a commercial memory allocator library (for MacOS pre X/Codewarrior called HeapManager) in the 90's. I built like 20 different test apps with varying workloads that I ran after every change to ensure it worked and measure the performance. I probably spent more time on the test apps than the allocator. But it was a simpler time (single threaded) and the CPUs were a whole lot less complicated. I did learn a lot about measuring allocators though it was hard to emulate real world usage fairly. My customers seemed to find it was really fast so I guess I did a decent job. Today it would be a hell of a lot more work.
- iainmerrick 6y agoDo you mean Metrowerks’ own allocator? I cut my C/C++ teeth on CodeWarrior (and Think C), and vividly remember the incredibly detailed implementation comments in the CodeWarrior malloc headers. I learned a lot from that! It’s still one of my of go-to examples of great tech docs. Anyway, if that was you, thank you!