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)