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

Improve performance of Scala Enumeration counters in Scrunch

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.12.0
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: