Philip Hazel <[EMAIL PROTECTED]> said, in message
[EMAIL PROTECTED]:

> On Thu, 29 Sep 2005, Alun wrote:
> 
> > But... quickly looking at the source code, I can't see why this
> > isn't easily  done. Admittedly I've not gone into it in detail, but
> > couldn't the "open_log"  function do the string expansions on
> > log_file_path every time it's called and  the "log_write" function
> > always close the file afterwards if there's a dollar sign in
> > log_file_path? 
> 
> That sounds to be to highly inefficient, and likely to cause grumbles 
> about performance degradation.

As I say, I only took a quick glance... It looked like open_log is 
(at present) only called once per instance of exim, as it then caches
the file descriptor. If log_write just checked for a flag indicating
that log_file_path needed expansion, and only closed the file after 
writing if that flag was set, most people would only see a single extra
integer comparison per log line. People needing string expansion 
would take more load, but then they're asking for the system to do 
rather more work, so they should expect what they ask for :-)

Cheers,
Alun.

-- 
Alun Jones                       [EMAIL PROTECTED]
Systems Support,                 (01970) 62 2494
Information Services,
University of Wales, Aberystwyth

-- 
## List details at http://www.exim.org/mailman/listinfo/exim-users 
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://www.exim.org/eximwiki/

Reply via email to