crunch-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Josh Wills (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CRUNCH-508) Improve performance of Scala Enumeration counters in Scrunch
Date Tue, 07 Apr 2015 18:48:13 GMT
Josh Wills created CRUNCH-508:
---------------------------------

             Summary: Improve performance of Scala Enumeration counters in Scrunch
                 Key: CRUNCH-508
                 URL: https://issues.apache.org/jira/browse/CRUNCH-508
             Project: Crunch
          Issue Type: Improvement
            Reporter: Josh Wills


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.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message