Comment by jstimpfle Comment by jstimpfle 4 days ago 4 replies Copy Link View on Hacker News No. Look up Arenas. In general group allocations to avoid making a mess.
Copy Link rictic 3 days ago Next Collapse Comment - If you send a task off to a work queue in another thread, and then do some local processing on it, you can't usually use a single Arena, unless the work queue itself is short lived. Reply View | 0 replies
Copy Link jenadine 3 days ago Prev Next Collapse Comment - I don't see how arenas solve the problems. Reply View | 1 reply Copy Link jstimpfle 3 days ago Parent Collapse Comment - You group things from the same context together, so you can free everything in a single call. Reply View | 0 replies
Copy Link jstimpfle 3 days ago Parent Collapse Comment - You group things from the same context together, so you can free everything in a single call. Reply View | 0 replies
Copy Link estimator7292 3 days ago Prev Collapse Comment - No. Arenas are not a general case solution. Look it up Reply View | 0 replies
If you send a task off to a work queue in another thread, and then do some local processing on it, you can't usually use a single Arena, unless the work queue itself is short lived.