You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "bd2019us (JIRA)" <ji...@apache.org> on 2019/04/20 21:05:00 UTC

[jira] [Created] (HIVE-21636) Performance cost when using replaceAll() vs replace()

bd2019us created HIVE-21636:
-------------------------------

             Summary: Performance cost when using replaceAll() vs replace() 
                 Key: HIVE-21636
                 URL: https://issues.apache.org/jira/browse/HIVE-21636
             Project: Hive
          Issue Type: Improvement
          Components: Accumulo Storage Handler, HCatalog, Vectorization
            Reporter: bd2019us


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



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)