by amelius · 11y ago · 0 comments
Anyway, on my personal wishlist: Allow customized pointers. For example, if I use a mmapped file that is mapped at a different base address every time it is opened, the pointers within that file are always relative to the base address. I'd like to use "special" pointers inside the mmapped file, that are aware of this. Also, I'd like to use standard data structures (associative arrays, lists, sets) inside the mmapped file, meaning that the solution should be generic.
It's already there isn't it? Isn't a custom pointer just a stack struct implementing Deref (and possibly DerefMut)?
However, you would probably want a different implementation anyway due to the different performance characteristics of disk/SSD vs RAM.