Re: modifying array access syntax



Kent M Pitman <pitman@xxxxxxxxxxx> writes:

> (a) FUNCALL could have special-cased them [arrays] in a type
> dispatch and

I'd just like to point out that FUNCALL is a hot candidate for
inlining, and increasing its number of cases from 2 to 3 (i.e. from
dealing with functions and symbols to also arrays) might incur
non-negligible costs in terms of code-size, as well as making
FUNCALL's performance more "skewed": for any typecase the earlier
clauses will be faster than the later ones. If there were several
incompatible storage-layouts for arrays (say, simple-vectors,
basic-arrays and displaced-arrays), both problems are exacerbated.

--
Frode Vatvedt Fjeld
.



Relevant Pages