Y
Hacker News
new
|
ask
|
show
|
jobs
by
imtringued
2518 days ago
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