Timeline for How to speed up ordering of output file
Current License: CC BY-SA 3.0
10 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Feb 19, 2018 at 9:35 | vote | accept | Joshua Kidd | ||
| Feb 17, 2018 at 14:51 | comment | added | 200_success |
It's not clear where the year, month, day come from. Also, why are you reading files from 'subdirectory' but deleting them from 'download'? Also, why are you opening the output files in append mode rather than write mode?
|
|
| Feb 17, 2018 at 14:03 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
| Jan 18, 2018 at 19:32 | comment | added | aghast | Arrange so your "old" file is in order. Sort your "new" data into a different file, in order. Then perform what is called a "merge" between the two. This will be \$O(n)\$ instead of \$O(n log n)\$, so you should see a performance win. | |
| Jan 18, 2018 at 13:53 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
| Dec 19, 2017 at 13:22 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
| Nov 19, 2017 at 12:57 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
| Oct 20, 2017 at 12:47 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
| Sep 20, 2017 at 12:42 | answer | added | act | timeline score: 1 | |
| Sep 20, 2017 at 8:45 | history | asked | Joshua Kidd | CC BY-SA 3.0 |