SB-ALIEN in general does a lot of same work again and again when the core optimizations don't kick in.
In the above case, for example, we generate the naturalize-lambda for (UNSIGNED 8) four times during the call.
It seems that cacheing/precomputing the naturalize, deport, deport-alloc, deposit, and extract functions for various types would be a clear win -- particularly when coupled with interning alien types.
SB-ALIEN in general does a lot of same work again and again when the core optimizations don't kick in.
In the above case, for example, we generate the naturalize-lambda for (UNSIGNED 8) four times during the call.
It seems that cacheing/ precomputing the naturalize, deport, deport-alloc, deposit, and extract functions for various types would be a clear win -- particularly when coupled with interning alien types.