You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mahout.apache.org by "Johannes Schulte (JIRA)" <ji...@apache.org> on 2013/12/20 15:26:11 UTC

[jira] [Updated] (MAHOUT-1385) Caching Encoders don't cache

     [ https://issues.apache.org/jira/browse/MAHOUT-1385?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Johannes Schulte updated MAHOUT-1385:
-------------------------------------

    Attachment: MAHOUT-1385-test.patch

No solution but demonstration of the defect

> Caching Encoders don't cache
> ----------------------------
>
>                 Key: MAHOUT-1385
>                 URL: https://issues.apache.org/jira/browse/MAHOUT-1385
>             Project: Mahout
>          Issue Type: Bug
>    Affects Versions: 0.8
>            Reporter: Johannes Schulte
>            Priority: Minor
>         Attachments: MAHOUT-1385-test.patch
>
>
> The Caching... line of encoders contains code of caching the hash code terms added to the vector. However, the method "hashForProbe" inside this classes is never called as the signature has String for the parameter original form (instead of byte[] like other encoders).
> Changing this to byte[] however would lose the java String internal caching of the Strings hash code , that is used as a key in the cache map, triggering another hash code calculation.



--
This message was sent by Atlassian JIRA
(v6.1.4#6159)