Skip to content

Restore date aggregation performance in UTC case#38700

Merged
spinscale merged 1 commit intoelastic:7.xfrom
spinscale:1902-fix-utc-aggs-performance-7.x
Feb 11, 2019
Merged

Restore date aggregation performance in UTC case#38700
spinscale merged 1 commit intoelastic:7.xfrom
spinscale:1902-fix-utc-aggs-performance-7.x

Conversation

@spinscale
Copy link
Copy Markdown
Contributor

The benchmarks showed a sharp decrease in aggregation performance for
the UTC case.

This commit uses the same calculation as joda time, which requires no
conversion into any java time object, also, the check for an fixedoffset
has been put into the ctor to reduce the need for runtime calculations.
The same goes for the amount of the used unit in milliseconds.

Closes #37826

Backport of #38221

The benchmarks showed a sharp decrease in aggregation performance for
the UTC case.

This commit uses the same calculation as joda time, which requires no
conversion into any java time object, also, the check for an fixedoffset
has been put into the ctor to reduce the need for runtime calculations.
The same goes for the amount of the used unit in milliseconds.

Closes elastic#37826
@spinscale spinscale added :Core/Infra/Core Core issues without another label backport labels Feb 11, 2019
@elasticmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-core-infra

@spinscale spinscale merged commit e7868e9 into elastic:7.x Feb 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport :Core/Infra/Core Core issues without another label

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants