From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 10.103.168.9 with SMTP id v9cs21020muo; Thu, 25 Mar 2010 05:14:18 -0700 (PDT) Received: by 10.224.103.69 with SMTP id j5mr2538883qao.158.1269519257053; Thu, 25 Mar 2010 05:14:17 -0700 (PDT) Return-Path: Received: from rubyforge.org (rubyforge.org [205.234.109.19]) by mx.google.com with ESMTP id 9si1192377qyk.73.2010.03.25.05.14.16; Thu, 25 Mar 2010 05:14:17 -0700 (PDT) Received-SPF: pass (google.com: domain of sup-devel-bounces@rubyforge.org designates 205.234.109.19 as permitted sender) client-ip=205.234.109.19; Authentication-Results: mx.google.com; spf=pass (google.com: domain of sup-devel-bounces@rubyforge.org designates 205.234.109.19 as permitted sender) smtp.mail=sup-devel-bounces@rubyforge.org; dkim=neutral (body hash did not verify) header.i=@gmail.com Received: from rubyforge.org (rubyforge.org [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id B733518582F4; Thu, 25 Mar 2010 08:14:15 -0400 (EDT) X-Greylist: delayed 1685 seconds by postgrey-1.31 at rubyforge.org; Thu, 25 Mar 2010 07:53:57 EDT Received: from mail-qy0-f171.google.com (mail-qy0-f171.google.com [209.85.221.171]) by rubyforge.org (Postfix) with ESMTP id 71CF118582F4 for ; Thu, 25 Mar 2010 07:53:57 -0400 (EDT) Received: by qyk1 with SMTP id 1so5925870qyk.0 for ; Thu, 25 Mar 2010 04:53:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:content-type:cc :subject:from:to:in-reply-to:references:date:message-id:user-agent :content-transfer-encoding; bh=nsfA2fh/czJu0ybRzoZbPAHjc29aPLzOwJT+2XLqfPA=; b=Liqk2y58ob0QVTKcKGW8jKVvFsVm3zgUJnTwEW2xLQkznb1nuLqtK1KHtlnuiUfvQA Lcd43fyWdHw4rNQdhZKI5hFM/l2w3JRfHxrQop4e0aOAtnR2lwXgx5ehGkLlXpzL4XMe 8ZjBmj80krMC5Gp3XWvmmb9/kmJXshFcpaH3k= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:content-type:cc:subject:from:to:in-reply-to:references:date :message-id:user-agent:content-transfer-encoding; b=eei0lgbpdxNIfTztR67H5NFERGRAWDnWLfT7Y8z7sco8ItKoNjkZhUbHZ2VC10RaLP xszJpoYlZhSPUMq4a6X+M9HL2q6wWIQfMxQTxCgUWm7B96HEIITStIHJebQvWbKaNJ51 +nQSr84HFzq5V9F/fMeqMI1m8RcEq5QXcVIjE= Received: by 10.224.88.29 with SMTP id y29mr3252621qal.332.1269516302271; Thu, 25 Mar 2010 04:25:02 -0700 (PDT) Received: from localhost (c-24-63-138-255.hsd1.vt.comcast.net [24.63.138.255]) by mx.google.com with ESMTPS id 20sm699266qyk.12.2010.03.25.04.25.00 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 25 Mar 2010 04:25:00 -0700 (PDT) From: Mark Alexander To: Rich Lane In-reply-to: <1269499582-sup-2593@zyrg.net> References: <1269499582-sup-2593@zyrg.net> Date: Thu, 25 Mar 2010 07:24:59 -0400 Message-Id: <1269516077-sup-4573@r61> User-Agent: Sup/0.10.2 Cc: sup-devel Subject: Re: [sup-devel] new branch: maildir X-BeenThere: sup-devel@rubyforge.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: Sup developer discussion List-Id: Sup developer discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: sup-devel-bounces@rubyforge.org Errors-To: sup-devel-bounces@rubyforge.org 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