On Thu, Oct 23, 2008 at 1:43 AM, via RT Stephane Payrard
<[EMAIL PROTECTED]> wrote:

> This results in 4 stat()s per pbc.
> opening the file and using Parrot_fstat_info_intval() instead of
> Parrot_stat_info_intval() will be less costly.
> this means retooling readbc() that now stats the file to verify it can open 
> it.

I think will be faster and cleaner to have a function that takes a
file handler. That way the search functions can just try to open a
file instead of doing stat call for any directory in the search paths,
and then pass a file path to do even more stat on it.

-- 
Salu2

Reply via email to