Global Feed Post Login
Replying to Avatar semisol

So ideally with this, you have small-medium messages and it acts like an in-memory struct but safe and almost as fast.

After you are done processing a message, free it, and it’s done. Usually you would not need to keep one in memory for long, even parts of it (say HTTP request bodies, or logs that get processed and written to a file)

For when you need a subset that is not worth keeping the message around for, copy it, agreed

Avatar
ynniv 7mo ago

Depending on the language you're using, there might not be an explicit way to free memory

Reply to this note

Please Login to reply.

Discussion

No replies yet.