Archive of RubyForge sup-talk mailing list
 help / color / mirror / Atom feed
From: bdwalton@gmail.com (Ben Walton)
Subject: [sup-talk] [PATCH] maildir speedups
Date: Wed, 30 Apr 2008 14:50:52 -0400	[thread overview]
Message-ID: <f96e0240804301150w5e07823cuf3b16fc7dffa759e@mail.gmail.com> (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>


             reply	other threads:[~2008-04-30 18:50 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-30 18:50 Ben Walton [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=f96e0240804301150w5e07823cuf3b16fc7dffa759e@mail.gmail.com \
    --to=bdwalton@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox