Login Register






Checking for Duplicates Across Multiple Files filter_list
Author
Message
RE: Checking for Duplicates Across Multiple Files #9
(01-26-2015, 02:27 PM)Eclipse Wrote: Wouldn't using lists be useless for large text files?


Same as above; isn't using lists limited if, say, you have three 4GB files?

It will consume a fuckload of memory, yes. Instead of using lists, you can just use temporary files though. That way they are written to disk and not stored in RAM. When you check to see if the line already exists, read the file in predetermined chunk sizes to save time (powers of two work nicely).

Reply





Messages In This Thread
RE: Checking for Duplicates Across Multiple Files - by phyrrus9 - 01-26-2015, 03:18 PM