Large arrays of small boxes can be a little slow, yes.  But you 
shouldn't worry about that unless you know you're going to have a large 
array.

If you need the elements of the result to have different shapes, you're 
just going to have to box them, or ignore the fills.  I would box them.

The performance cost should not be a primary consideration.

Henry Rich

Alexander Mikhailov wrote:
>> To avoid the fills, you must use boxing, as you suggest.
>>
>>    3 4 f2&.>~ 2 3 <@f1 4
>> +---+---+
>> |4 3|4 4|
>> |5 3|5 4|
>> |   |6 4|
>> +---+---+
>>
>> Henry Rich
> 
> Henry, but it's seem to be somewhat expensive, performance wise,
> according to your book? Does it mean J forces you to have a
> performance penalty here, or the whole program design isn't good?
> 
> Alexander
> 
> 
> 
>       
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
> 
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to