[ 
https://issues.apache.org/jira/browse/MAHOUT-260?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12835056#action_12835056
 ] 

Sean Owen commented on MAHOUT-260:
----------------------------------

Great question -- it is only because there is no "WeakHashSet" in the JDK. I 
need to store references to these wrapper objects in a way that won't prevent 
them from begin GC'ed, and WeakHashMap is the best the JDK offers short of 
rolling our own.

> An alternative approach to RNG management
> -----------------------------------------
>
>                 Key: MAHOUT-260
>                 URL: https://issues.apache.org/jira/browse/MAHOUT-260
>             Project: Mahout
>          Issue Type: Improvement
>    Affects Versions: 0.3
>            Reporter: Benson Margulies
>            Assignee: Sean Owen
>            Priority: Minor
>         Attachments: MAHOUT-260.diff, MAHOUT-260_wrapper.patch
>
>
> Here's code to (a) use the JDK for random numbers when testing, and (b) make 
> the RNG selectable.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to