On 9/14/07, Sherlock, Ric <[EMAIL PROTECTED]> wrote: > ... so working with inverted tables is indeed much more space efficient, > but for some reason it requires more space if it follows directly after > an operation on a non-inverted table. Is this expected? The behaviour > doesn't' occur with smaller arrays so is it just some memory management > artifact?
I can reproduce this, and it seems repeatable. Note also that you get the same effect even if each sentence is working on different data: t0=: 8!:0 <"0 i.1000 20 t1=: 8!:0 <"0 ]1+i.1000 20 t2=: 8!:0 <"0 ]2+i.1000 20 t3=: 8!:0 <"0 ]3+i.1000 20 ifa =: <@(>"1)@|: 7!:2 '0&". each ifa t0' 617472 7!:2 '0&". each t1' 6941952 7!:2 '0&". each ifa t2' 1141760 7!:2 '0&". each ifa t3' 617472 -- Raul ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
