Quote:
Originally posted by Conrad Song:
It's not the memory that makes virtual memory slow, it is the file system. When virtual memory is used there is overhead in managing the virtual memory mananger, and no guarantee that the order of pages will stay correctly ordered together to give the most efficient access to the disk.
I apologize for blanking on the term, I meant to say that the sort is order stable. My meaning is that subsequent sorts do not disturb the ordering of sorts done previously. This has nice properties.
If the merge sort is destructive to the original set of keys, then you need to allocate at most 1x more space. If you are more clever you can get away with less.
You don't access the file system w/ virtual memory.