Sometimes it is a good idea, but it works only if:
1) You have a threaded implementation, otherwise your single thread blocks every time you access a page on the swap.
2) You have decently sized continuous objects. If instead a request involves many fragments of data from many different pages, it is not going to work well.
There are other issues but probably 1 & 2 are the most important.
1) You have a threaded implementation, otherwise your single thread blocks every time you access a page on the swap.
2) You have decently sized continuous objects. If instead a request involves many fragments of data from many different pages, it is not going to work well.
There are other issues but probably 1 & 2 are the most important.