3 ms·
One approach might be a memory-mapped-file. You could then use a custom allocator that uses memory in that address range for your data structures. Your language
by karmakaze 5y ago
One approach might be a memory-mapped-file. You could then use a custom allocator that uses memory in that address range for your data structures. Your language would have to be low-level enough to let you map address ranges and memory allocation from them.
Now that I think of it, I did use ObjectStore[0] at one time. It did what it claimed to do, but performance wasn't that great.
[0] https://en.wikipedia.org/wiki/ObjectStore https://en.wikipedia.org/wiki/ObjectStore