Timeline for Python search for array in large text file
Current License: CC BY-SA 3.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jul 18, 2016 at 11:59 | comment | added | Roel Schroeven | @Scripting.FileSystemObject The big difference is: for each line in f.txt, your code loops over all elements in paid; the solution code instead does a lookup in paid (which is a set there); that is much faster. | |
Jul 18, 2016 at 9:00 | vote | accept | Rahul Patel | ||
Jul 18, 2016 at 8:53 | comment | added | Rahul Patel | What? Are you kidding? 0:00:14.917000 compared to 0:11:05.542505? How? looks like same code to me. really amazed. | |
Jul 18, 2016 at 6:51 | history | answered | 200_success | CC BY-SA 3.0 |