httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jean-Jacques Clar" <>
Subject [PATCH] optimization in ap_meets_conditions()
Date Mon, 03 Mar 2003 19:03:38 GMT
The function ap_meets_conditions() is doing unnecessary calls to 
apr_time_now() and apr_time_sec().
Since the variables (mtime) has its target value in second, it should 
be possible to use r->request_time instead of calling apr_time_now().
I did not see cases where the delay between a call to
and ap_meets_conditions() was greater then 1 second.
Also, if r->request_time is not available, it should just call
instead of calling apr_time_now() followed by a call to
Thank you,

View raw message