I removed a few cases where LINQ was being used to .ToList when it was unecessary to remap. Writing lines to the file takes an Enumerable and can be passed a Set<string> without needing to convert it back to a List<string>
I also noticed that I had removed an OrderBy() that was being called while collecting the emails, and moved the sort to when it was being written to file, which may help in cases of large files.
Rebased PR #8
I removed a few cases where LINQ was being used to
.ToList
when it was unecessary to remap. Writing lines to the file takes an Enumerable and can be passed aSet<string>
without needing to convert it back to aList<string>
I also noticed that I had removed an
OrderBy()
that was being called while collecting the emails, and moved the sort to when it was being written to file, which may help in cases of large files.