Interesting point.

This might mean that a closure idiom is indeed better since it makes it easy
to pass two arguments.


On 4/11/08 4:53 PM, "Karl Wettin (JIRA)" <[EMAIL PROTECTED]> wrote:

> 
>     [ 
> https://issues.apache.org/jira/browse/MAHOUT-34?page=com.atlassian.jira.plugin
> .system.issuetabpanels:comment-tabpanel&focusedCommentId=12588174#action_12588
> 174 ] 
> 
> Karl Wettin commented on MAHOUT-34:
> -----------------------------------
> 
> I'm also thinking we should perhaps re-use the Element instance in
> iterator.next? Iterator a matrix of 5000 instance with 40000 features each
> would be instantiating 200,000,000 Elements. I'm sure the JVM pools that, but
> we can always help it.
> 
> I thinks it's OK if it is a documented caveat.
> 
>> Iterator interface for Vectors
>> ------------------------------
>> 
>>                 Key: MAHOUT-34
>>                 URL: https://issues.apache.org/jira/browse/MAHOUT-34
>>             Project: Mahout
>>          Issue Type: New Feature
>>            Reporter: Samee Zahur
>>            Assignee: Karl Wettin
>>         Attachments: VectorIterator.3.patch.bz2,
>> VectorIterator.patch.2.tar.bz2, VectorIterator.patch.tar.bz2
>> 
>> 
>> Implemented an Iterator interface for the Vector classes. Was necessary for
>> porting from Float[] used in some parts of the code.

Reply via email to