3 ms·
You will still pay for at least 4 KB or whatever the page size in your system is. If you reuse the buffer memory use will never go down, if you reallocate on re
by legulere 5y ago
You will still pay for at least 4 KB or whatever the page size in your system is. If you reuse the buffer memory use will never go down, if you reallocate on reuse you pay the price of communicating with the operating system.
On x86 the virtual memory is just 48 bit big, which means you can have only 2^16 32 bit space entries.
To me what you are proposing seems like a clever way of allocating that has a pretty restricted use.