Uploaded image for project: 'Mahout'
  1. Mahout
  2. MAHOUT-1385

Caching Encoders don't cache

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.8
    • 0.10.0
    • None
    • None

    Description

      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.

      Attachments

        1. MAHOUT-1385.patch
          5 kB
          Manoj Awasthi
        2. MAHOUT-1385-test.patch
          1 kB
          Johannes Schulte

        Activity

          People

            Unassigned Unassigned
            baunz Johannes Schulte
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: