in reply to Re^3: [OT] A measure of 'sortedness'?
in thread [OT] A measure of 'sortedness'?
why not smaller chunks?
Because eventually, you need to merge the smaller chunks into bigger ones. That includes the ones bigger than memory, but by spltting into 1/2 memory sized chunks, you can merge them in pairs:
A B C D Each 2GB A&B B&C C&D The largest have migrated from A to D, no need to revis +it B&C A&B The smallest have migrated from D to A no need to revis +it B&C And final pass ensures everything is in place.
Using smaller buffers only delays the inevitable and increases the number of passes.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: [OT] A measure of 'sortedness'?
by RonW (Parson) on Mar 19, 2015 at 19:45 UTC | |
by BrowserUk (Patriarch) on Mar 19, 2015 at 20:44 UTC |