Uploaded image for project: 'Crunch'
  1. Crunch
  2. CRUNCH-508

Improve performance of Scala Enumeration counters in Scrunch

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.12.0
    • Component/s: None
    • Labels:
      None

      Description

      The Scrunch Increment* traits support using Scala Enumerations as counters in pipelines by converting the Enumeration/Value pairs to the equivalent String values. The Enumeration.toString method isn't particularly optimized though, so doing this conversion is expensive enough from a CPU perspective that it's worthwhile to cache the String value so as not to have to do the computation for every input record.

        Attachments

        1. CRUNCH-508.patch
          2 kB
          Josh Wills

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              jwills Josh Wills
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: