Archive of RubyForge sup-talk mailing list
 help / color / mirror / Atom feed
* [sup-talk] [PATCH] maildir speedups
@ 2008-04-30 18:50 Ben Walton
  2008-05-20  3:29 ` William Morgan
  0 siblings, 1 reply; 11+ messages in thread
From: Ben Walton @ 2008-04-30 18:50 UTC (permalink / raw)


Hi All,

The attached small patch improves maildir performance by making the
assumption that nothing will be modifying the underlying files
themselves.  It uses the mtimes of cur/ and new/ to mark whether or
not to poll files in the directory.  This sees the initial poll be a
somewhat slow process (nfs for me again), but subsequent polls are
much faster.  I'm caching the mtimes in sources.yaml too, but
currently this doesn't save anything across loads of sup since the
id's (and id -> fn map) are not cached across restarts.

I hope you find this useful.
-Ben
-- 
---------------------------------------------------------------------------------------------------------------------------
Ben Walton <bdwalton at gmail.com>

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

---------------------------------------------------------------------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-maildir-speed-improvements.patch
Type: text/x-patch
Size: 4256 bytes
Desc: not available
URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20080430/1ba57542/attachment-0001.bin>


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2008-06-04  2:49 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-04-30 18:50 [sup-talk] [PATCH] maildir speedups Ben Walton
2008-05-20  3:29 ` William Morgan
     [not found]   ` <f96e0240805200924u1c991392oe36de853e208bab8@mail.gmail.com>
2008-05-21  1:08     ` Ben Walton
2008-05-25  2:34       ` William Morgan
2008-05-29  2:49         ` Grant Hollingworth
2008-05-29  3:05           ` Grant Hollingworth
2008-05-29  3:06             ` Grant Hollingworth
2008-05-29 13:34           ` Ben Walton
2008-05-30 16:26             ` William Morgan
2008-06-04  0:39               ` Ben Walton
2008-06-04  2:49                 ` William Morgan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox