[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Nmh-workers] m_getfld branch merged
From: |
David Levine |
Subject: |
Re: [Nmh-workers] m_getfld branch merged |
Date: |
Sun, 27 Jan 2013 16:05:31 -0500 |
Ken wrote:
> Ok, I'm wondering about this ... I see that the big
> difference at least from a system call trace is the calls
> to lseek(), which I guess are resulting from calls from
> fseek() or ftell(). So do a lot of nmh programs use
> fseek() to change the stream pointer mid-stream? I ask
> because maybe programs like scan could tell m_getfld()
> that they don't need to keep track of that stuff (or the
> programs that care about that could tell m_getfld () that
> they do care about that).
Right, inc/scan could get away without it. I'll look into
it, it shouldn't be difficult to slip in a bypass for them.
Did you notice the number of calls to open(2) for a MIME
message? One per part, plus the seek to the start of the
part. parse_mime() needs tilling. Most the mh* programs
rely on it.
David