[perl #60060] [BUG] Parrot_readbc() does too many stat()s

Jonathan "Duke" Leto via RT parrotbug-followup at parrotcode.org
Thu Nov 5 07:20:42 UTC 2009

This is now tracked at https://trac.parrot.org/parrot/ticket/1208

On Thu Oct 23 09:03:56 2008, julianalbo wrote:
> On Thu, Oct 23, 2008 at 1:43 AM, via RT Stephane Payrard
> <parrotbug-followup at parrotcode.org> 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.

More information about the parrot-dev mailing list