apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "William A. Rowe, Jr." <wr...@rowe-clan.net>
Subject Re: [PATCH] performance fix for time offset computation
Date Tue, 28 Aug 2001 12:26:13 GMT
From: "Jeff Trawick" <trawick@attglobal.net>
Sent: Tuesday, August 28, 2001 6:47 AM


> Brian Pane <bpane@pacbell.net> writes:
> 
> > On platforms where neither HAVE_GMTOFF nor HAVE___OFFSET is defined,
> > like Solaris, the function "get_offset" in apr/time/unix/time.c is a
> > bottleneck in time formatting.
> > 
> > On these platforms, get_offset ignores its argument; it really computes
> > the server's offset from GMT, normalized so that it's independent of
> > daylight savings.
> > 
> > The following patch caches the offset after it's first computed, so
> > that we don't have to compute it repeatedly.
> 
> Would anybody besides me feel better if we had apr_initialize() call
> apr_unix_setup_time() to do this?

Apparently :)  +1



Mime
View raw message