[asdf-devel] Performance hit in TRUENAMIZE

Faré fahree at gmail.com
Wed Jul 14 22:59:06 UTC 2010


On 14 July 2010 16:40, Juan Jose Garcia-Ripoll
<juanjose.garciaripoll at googlemail.com> wrote:
> Why using TRUENAME + ERROR + HANDLER-CASE instead of PROBE-FILE?
> I have been tracking a completely unrelated bug in ECL but found that for
> loading all files ASDF calls TRUENAME with the names of FASLs that do not
> exist. It finds out that by catching the corresponding error and then tries
> something else.
> Throwing and catching errors is costly. Why doing that instead of using
> PROBE-FILE?
> Juanjo
>

Dear Juanjo,

we use TRUENAME + HANDLER-CASE precisely because the file (or
directory, most of the time) doesn't necessarily exist and we're
trying to fully resolve any symlinks along the path, so that in the
end we may apply translations to normalized pathnames.

If you know of a less brutish approach to the problem, or of an
ECL-specific optimization, I'll be glad to apply a patch. How do you
think we could improve things? Is it causing a big performance hit for
you? I would have supposed the filesystem caches would handle all this
traffic gracefully.

[ François-René ÐVB Rideau | Reflection&Cybernethics | http://fare.tunes.org ]
Who released the most slaves? The one who spent his wealth buying them back?
Or the capitalist who found a way to power mills with water?




More information about the asdf-devel mailing list