apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Justin Erenkrantz <jerenkra...@apache.org>
Subject Re: cvs commit: apr STATUS
Date Fri, 12 Jul 2002 00:34:15 GMT
On Thu, Jul 11, 2002 at 05:31:29PM -0700, Aaron Bannert wrote:
> On Fri, Jul 12, 2002 at 12:13:54AM -0000, Justin Erenkrantz wrote:
> > jerenkrantz    2002/07/11 17:13:54
> > 
> >   Modified:    .        STATUS
> >   Log:
> >   IMHO, apr_time_t should be treated as an opaque value.  The library should be
> >   free to change the implementation details whenever it wants.
> 
> There are two *huge* things wrong with this:
> 
> 1) apr_time_t has always been a scalar
> 2) making apr_time_t an opaque type would make it so horribly inefficient
>    that we might as well leave it as sorta-slow decimal usecs.

Not quite opaque in that you can still compute deltas via a
subtraction, but that to understand the quantities, you must place
it through a function/macro.  Brian has already converted httpd
to this model.  -- justin

Mime
View raw message