nmh-workers
[Top] [All Lists]

Re: [Nmh-workers] m_getfld branch merged

2013-01-27 15:05:43
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

_______________________________________________
Nmh-workers mailing list
Nmh-workers(_at_)nongnu(_dot_)org
https://lists.nongnu.org/mailman/listinfo/nmh-workers

<Prev in Thread] Current Thread [Next in Thread>