Python Forum
sorting a strange file
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
sorting a strange file
#11
Sorting it in memory. I google it and I think the quick sort algorithm is a good option.
"As they say in Mexico 'dosvidaniya'. That makes two vidaniyas."
https://freedns.afraid.org
Reply
#12
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.
Reply
#13
Don't know what 'sorted' is using.
"As they say in Mexico 'dosvidaniya'. That makes two vidaniyas."
https://freedns.afraid.org
Reply
#14
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).
Reply
#15
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.
Reply
#16
Well,you can sort it in place then.
"As they say in Mexico 'dosvidaniya'. That makes two vidaniyas."
https://freedns.afraid.org
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020