Re: Feature request.

Top Page
Delete this message
Reply to this message
Author: Chris Thompson
Date:  
To: Philip Hazel
CC: m.hampson, exim-users
Subject: Re: Feature request.
Philip Hazel writes:
>
> You are right in principle, but that would require writing special
> purpose searching code just for this one case. Internally Exim has a
> single call to the search routines, that implements "search for this key
> in this file using this search method". I would rather not spoil this
> simple approach by kludging in special-purpose things for lsearch only.


Quite right, in my opinion.
\start-extreme-viewpoint
If it doesn't fit in a single stdio buffer, it's too big for linear search
anyway. And if it does, then rewind(f) shouldn't need to do any system calls.
\end-extreme-viewpoint

For a less extreme version, replace "in a stdio buffer" with "in the kernel
buffer cache".

Chris Thompson               Cambridge University Computing Service,
Email: cet1@???    New Museums Site, Cambridge CB2 3QG,
Phone: +44 1223 334715       United Kingdom.