[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sup-devel] new branch: maildir



Excerpts from Rich Lane's message of Thu Mar 25 03:12:57 -0400 2010:
> This branch makes some drastic changes to how mbox and maildir sources
> work.

Thanks for attacking this problem!

I just took a quick look at the diffs, and I have some concern
about this line in maildir.rb:

  Dir[File.join(subdir, '*')].map do |fn|

I'm worried about the memory usage with some of my maildirs that have
tens of thousands of files.  Would it be more memory-efficient to
use Dir.open and Dir.each?  You'd have to filter out "." and "..",
of course.
_______________________________________________
Sup-devel mailing list
Sup-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-devel