swapvec
swapvec copied to clipboard
SwapVecDeque
When working with FIFO/LIFO access patterns one might only want to keep the last x front/back elements in memory. This may have great performance while still keeping memory low.
The concrete issue I am trying to solve is that single postgres queries for such a access pattern are still too slow in my case.
I found that MacOS automatically switches to swap memory in case my rust app consumes ton of memory.