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

Matrix get/set causes allocation (?!)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.4
    • None
    • None

    Description

      Matrix get and set check the array bounds. But checking the array bounds calls size. But size allocates a small integer
      array.

      This is evil and KILLs performance.

      The first fix is to avoid this in SGD based classifiers. Second will be a real change to the matrix routines to avoid the allocation.

      Attachments

        Activity

          People

            Unassigned Unassigned
            tdunning Ted Dunning
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: