Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SDK Optimization] Multiple SimpleDateFormat initialization in CarbonReader #4281

Open
zhangboren93 opened this issue Jun 22, 2022 · 1 comment

Comments

@zhangboren93
Copy link

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

@prajwalbandak
Copy link

hey @zhangboren93 , Can you please assign to me and please explain the issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants