How to speed up external merge sort in Java?

You might wish to merge k>2 segments at a time. This reduces the amount of I/O from n log k / log 2 to n log n / log k.

I would use memory mapped files. It can be as much as 10x faster than using this type of IO. I suspect it will be much faster in this case as well.

The mapped buffers use virtual memory rather heap space to store data and can be larger than your available physical memory.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions