[Jprogramming] Indexed assignment must be slow?
Blake McBride
blake at mcbride.name
Sat Jan 7 00:36:02 HKT 2012
Yes, I am picking that up.
One important take-away to this is that in J, when doing indexed
assignments, one should put that code on its own, separate line of
code. One shouldn't create a "one-liner" by combining it with other
code. Using indexed assignments in the middle of a "one-liner" causes
a copy.
Does that statement sound right?
Thanks.
Blake McBride
On Fri, Jan 6, 2012 at 10:28 AM, Skip Cave <skip at caveconsulting.com> wrote:
> While
> x=:55(3})44(2})x
> copies, I believe
> x =: 55 44(3 2})x
> performs the same function, without copying.
>
> Skip
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
More information about the Programming
mailing list