[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Patch for autoload.v3 to allow export of function

From: Matthew Persico
Subject: Re: Patch for autoload.v3 to allow export of function
Date: Sat, 1 Jul 2017 17:50:03 -0400


I have finally gotten around to working on autoload again to ensure that
there are no issues. But I have a question about the _AUTOLOADS array,
which is used to track what has been autoloaded and is the source of
information for the -p command.

The code executes a linear scan of the array _AUTOLOADS each time it has to
find and element for removal or to make sure it is not about to add a
duplicate entry. This is hardly very efficient. Would it be OK to convert
that to an associative array (hash to us Perlers) indexed on function name?

I ask before submitting the patch because I am worried about backward
compatibility; I do not know when hashes were added to bash nor do I know
what the policy is about how far back compatibility has to be maintained.

Thank you!

Matthew O. Persico

reply via email to

[Prev in Thread] Current Thread [Next in Thread]