News for hackers. Stuff that matters.
Re:They say that stocks go down during the day and up at night by planede on Tuesday February 07, 2023 @10:36AM (#34694133)
Ah, OK. But I would characterize this as an internal allocator that never deallocates. You might as well replace `malloc` and `free` to do the same, and just allocate within the program normally.

Just because you "preallocate" it doesn't mean that you don't implement a poor man's allocator inside the preallocated buffer.

Re:They say that stocks go down during the day and up at night by dahfizz on Tuesday February 07, 2023 @11:43AM (#34695058)
Sure, but calling malloc at runtime is slow and maintaining an allocator isn't very useful if you can just restart the app every night. YAGNI ;)