apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Trawick <traw...@attglobal.net>
Subject Re: [PATCH] performance fix for time offset computation
Date Tue, 28 Aug 2001 11:47:49 GMT
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?

Jeff Trawick | trawick@attglobal.net | PGP public key at web site:
             Born in Roswell... married an alien...

View raw message