carbondata
carbondata copied to clipboard
[SDK Optimization] Multiple SimpleDateFormat initialization in CarbonReader
I found that reading carbon files from CarbonReader takes long time in "SimpleDateFormat.
https://github.com/apache/carbondata/blob/4b8846d1e6737e7db8a96014818c067c8c253d1f/sdk/sdk/src/main/java/org/apache/carbondata/sdk/file/CarbonReader.java#L207
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.
hey @zhangboren93 , Can you please assign to me and please explain the issue?