I use it (addTo) in decomposer, for exactly this performance issue.
Changing
plus into addTo requires care, because since plus() leaves arguments
immutable,
there may be code which *assumes* that this is the case, and doing addTo()
leaves side effects which might not be expected.  This bit me hard on svd
migration, because I had other assumptions about mutability in there.

  -jake

On Thu, Feb 18, 2010 at 1:09 PM, Robin Anil <robin.a...@gmail.com> wrote:

> ah! Its not being used anywhere :). Should we make that a big task before
> 0.3 ? Sweep through code(mainly clustering) and change all these things.
>
> Robin
>
>
>
> On Fri, Feb 19, 2010 at 2:36 AM, Sean Owen <sro...@gmail.com> wrote:
>
> > Isn't this basically what assign() is for?
> >
> > On Thu, Feb 18, 2010 at 9:04 PM, Robin Anil <robin.a...@gmail.com>
> wrote:
> > > Now the big perf bottle neck is immutability
> > >
> > > Say for plus its doing vector.clone() before doing anything else.
> > > There should be both immutable and mutable plus functions
> > >
> >
>

Reply via email to