julianbuettner / swapvec

A Rust Vector which swaps to disk based on given parameters
MIT License
43 stars 4 forks source link

SwapVecDeque #14

Open gitmalong opened 1 month ago

gitmalong commented 1 month ago

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.

gitmalong commented 1 month ago

I found that MacOS automatically switches to swap memory in case my rust app consumes ton of memory.