![]() |
sorting a strange file - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Forum & Off Topic (https://python-forum.io/forum-23.html) +--- Forum: Bar (https://python-forum.io/forum-27.html) +--- Thread: sorting a strange file (/thread-13396.html) Pages:
1
2
|
RE: sorting a strange file - wavic - Oct-15-2018 Sorting it in memory. I google it and I think the quick sort algorithm is a good option. RE: sorting a strange file - Skaperen - Oct-15-2018 what does sorted() use? "quick" for this case is how quick i can code it. RE: sorting a strange file - wavic - Oct-15-2018 Don't know what 'sorted' is using. RE: sorting a strange file - Gribouillis - Oct-15-2018 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). RE: sorting a strange file - Skaperen - Oct-15-2018 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. RE: sorting a strange file - wavic - Oct-15-2018 Well,you can sort it in place then. |