Details
-
Improvement
-
Status: Closed
-
Trivial
-
Resolution: Fixed
-
None
-
Patch
Description
Use String.replace() instead of String.replaceAll() when replaceAll() does not use a regex
replace() does not need extra compilation / performance overhead when a non-regex string is used. Thus changing replaceAll() to replace() can remove the associated performance overhead.
Affected files:
- accumulo-handler/src/java/org/apache/hadoop/hive/accumulo/predicate/compare/StringCompare.java
- hcatalog/core/src/main/java/org/apache/hive/hcatalog/mapreduce/FileOutputCommitterContainer.java
- vector-code-gen/src/org/apache/hadoop/hive/tools/GenVectorCode.java
Attachments
Attachments
Issue Links
- links to