Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.8.0
-
None
-
Reviewed
Description
To lookup, DFSOpsCountStatistics$OpType#fromSymbol and s3a.Statistic#fromSymbol iterates all the enums to get the entry by its symbol. Usages of fromSymbol() include isTracked() and getLong().
As there are dozens of enum entries, it merits to make these two similar operations O(1) complexity. This point is especially true if downstream app probes a dozen of stats in an outer loop (see TEZ-3331).