Do we have a good way to iterate over non-zero elements? On Tue, Jun 23, 2009 at 12:36 PM, Grant Ingersoll <gsing...@apache.org>wrote:
> I'm doing some more profiling and it seems like all over the place we are > looping from i = 0; i < size() and calling getQuick. This is then, for > SparseVector, dominated by the find lookup, which is taking up a lot of > time. > > So, it's not that find() is slow, but the fact that we are needlessly > calling getQuick() for loops. > > Just an FYI as we go forward not to do that. > >