[
https://issues.apache.org/jira/browse/CRUNCH-508?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Josh Wills updated CRUNCH-508:
------------------------------
Attachment: CRUNCH-508.patch
Patch for this.
> 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
> Attachments: CRUNCH-508.patch
>
>
> 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)