Ok, I took Grant's suggestion and just dropped the cleanup of the id
-> filename mapping hash.

-Ben
-- 
---------------------------------------------------------------------------------------------------------------------------
Ben Walton <[EMAIL PROTECTED]>

When one person suffers from a delusion, it is called insanity. When
many people suffer from a delusion it is called Religion.
Robert M. Pirsig, Zen and the Art of Motorcycle Maintenance

---------------------------------------------------------------------------------------------------------------------------
From 867b5974ac63db149b061c14474a55fd79ac73c4 Mon Sep 17 00:00:00 2001
From: Ben Walton <[EMAIL PROTECTED]>
Date: Tue, 3 Jun 2008 20:17:01 -0400
Subject: [PATCH] maildir cpu usage regression fix

This small tweak resolves the cpu usage issue pointed out by Grant Hollingworth
on sup-talk (http://rubyforge.org/pipermail/sup-talk/2008-May/001539.html).
---
 lib/sup/maildir.rb |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/lib/sup/maildir.rb b/lib/sup/maildir.rb
index 74a3e02..3d584f7 100644
--- a/lib/sup/maildir.rb
+++ b/lib/sup/maildir.rb
@@ -109,9 +109,6 @@ class Maildir < Source
 	end
       end
       @ids = @dir_ids.values.flatten.uniq.sort!
-      #remove old id to fn mappings...hopefully this doesn't actually change
-      #anything...normally, we'll add to this list but never remove mail.
-      @ids_to_fns.delete_if { |k, v| [EMAIL PROTECTED](k) }
     rescue SystemCallError, IOError => e
       raise FatalSourceError, "Problem scanning Maildir directories: #{e.message}."
     end
-- 
1.5.5.1

_______________________________________________
sup-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/sup-talk

Reply via email to