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

Add getAndSet to some BigArray implementations and make set return void #109878

Merged

Conversation

original-brownbear
Copy link
Member

The majority of callsites for these things don't look at the return. Computing the return from bytes to numeric values is not free due to bounds checks etc.
=> this PR adds a set that doesn't read the previous value and where needed moves the existing code to a new getAndSet call

The majority of callsites for these things don't look at the return.
Computing the return from bytes to numeric values is not free due to
bounds checks etc.
=> this PR adds a set that doesn't read the previous value and where
needed moves the existing code to a new getAndSet call
@original-brownbear original-brownbear added >non-issue :Analytics/Aggregations Aggregations :Core/Infra/Core Core issues without another label labels Jun 18, 2024
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-analytical-engine (Team:Analytics)

@elasticsearchmachine elasticsearchmachine added Team:Core/Infra Meta label for core/infra team v8.15.0 Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) labels Jun 18, 2024
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra (Team:Core/Infra)

Copy link
Contributor

@ldematte ldematte left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@original-brownbear
Copy link
Member Author

Thanks you two!

@original-brownbear original-brownbear merged commit 5ef4e81 into elastic:main Jun 19, 2024
14 of 15 checks passed
@original-brownbear original-brownbear deleted the speedup-bigarray-set branch June 19, 2024 13:10
@original-brownbear original-brownbear restored the speedup-bigarray-set branch November 30, 2024 10:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Analytics/Aggregations Aggregations :Core/Infra/Core Core issues without another label >non-issue Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) Team:Core/Infra Meta label for core/infra team v8.15.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants