Re:Copying data is wasteful, mutating data is dangerous
by agumonkey on Thursday January 09, 2020 @02:55PM
(#22004938)
Do game devs write custom allocators ?
[ Parent
| on HN ]
Re:Copying data is wasteful, mutating data is dangerous
by imtringued on Friday January 10, 2020 @06:05AM
(#22010134)
The simplest allocation/deallocation pattern is to delete everything after the unit of work [0] has finished. The downside is that the "unit of work" has to be defined by your program.
[0] HTTP requests, video frames, etc
Re:Copying data is wasteful, mutating data is dangerous
by danielscrubs on Thursday January 09, 2020 @03:15PM
(#22005158)
Almost always (for big budget ones).