Oct-15-2018, 05:03 AM
Sorting it in memory. I google it and I think the quick sort algorithm is a good option.
sorting a strange file
|
Oct-15-2018, 05:03 AM
Sorting it in memory. I google it and I think the quick sort algorithm is a good option.
Oct-15-2018, 06:16 AM
what does sorted() use? "quick" for this case is how quick i can code it.
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Oct-15-2018, 06:24 AM
Don't know what 'sorted' is using.
Oct-15-2018, 09:37 AM
(This post was last modified: Oct-15-2018, 09:41 AM by Gribouillis.)
You could perhaps create a huge ramdisk and run GNU sort in the ramdisk (although the program may be using temporary files on the hard drive).
Oct-15-2018, 07:31 PM
RAM gives me enough memory to hold one copy. swap space adds one one to that. file system space has the original file, which i need to keep, and has space for one more copy, the sorted result. the /tmp space is not big enough for even one copy (has only 4GB total). i might be able to squeeze in one more copy if i could merge all the empty spaces i have.
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Oct-15-2018, 07:52 PM
Well,you can sort it in place then.
|
|