I found that reading carbon files from CarbonReader takes long time in "SimpleDateFormat.", see attached file for output of
profiling.
|
SimpleDateFormat dateFormat = new SimpleDateFormat(carbonDateFormat); |
I wonder if it is OK if we add some lazy initialization to SimpleDateFormat in the class, and if so should it support multi-threading.
profile.zip
I found that reading carbon files from CarbonReader takes long time in "SimpleDateFormat.", see attached file for output of
profiling.
carbondata/sdk/sdk/src/main/java/org/apache/carbondata/sdk/file/CarbonReader.java
Line 207 in 4b8846d
I wonder if it is OK if we add some lazy initialization to SimpleDateFormat in the class, and if so should it support multi-threading.
profile.zip