-
Notifications
You must be signed in to change notification settings - Fork 14
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
[Enhancement]: Temporal averaging performance #688
Comments
Possible next steps:
|
Regarding to results: Case2,3,4 are identical, while, xcdat result from Case 1 is slightly off.
|
Do the runtimes you captured include I/O? |
Yes, it includes everything from |
I believe I've found the root cause for the most major performance bottleneck:
My initial solution:
I just opened PR #689 to explore and address this issue. |
Thank you for looking into this! It looks like we should be able to also get some performance improvement following your solution for E3SM Diags refactored code, which we can address later.. |
Is your feature request related to a problem?
This may not be a high priority issue, but I think it is worthwhile to document here:
When refactoring e3sm_diags with xcdat, I was working on using temporal.climatology operation to get annual cycle of a data stream which has 1hourly data for 30 years (ntime = 262800) from 1 grid point. Using xcdat is slower than the native function from e3sm_diags. It is probably expected, because the xcdat code is more sophisticated in reading in, writing out the data. I just noticed that it seems any operations on xarray.dataarray is much slower than numpy arrays, so the native e3sm_diags climo function needs to be optimized accordingly to get better performance.
Describe the solution you'd like
We can check if there are places where it is possible to get performance gain
Describe alternatives you've considered
No response
Additional context
Attaching example code and performance data.
The text was updated successfully, but these errors were encountered: