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

Minimize Automaton used in APMTracer #113775

Conversation

original-brownbear
Copy link
Member

This thing was taking up 400k of heap since it wasn't minimized, turns into ~2k after minimization.

This thing was taking up 400k of heap since it wasn't minimized, turns
into ~2k after minimization.
@original-brownbear original-brownbear added the :Core/Infra/Metrics Metrics and metering infrastructure label Sep 30, 2024
@elasticsearchmachine elasticsearchmachine added Team:Core/Infra Meta label for core/infra team v9.0.0 labels Sep 30, 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, thanks for this! Had no idea that lucene automata could be minimized. And since this is static, we pay only once for it, right?

@original-brownbear
Copy link
Member Author

Thanks Lorenzo! + yes exactly this only runs once in production :)

@original-brownbear original-brownbear merged commit fca267e into elastic:main Oct 2, 2024
15 of 16 checks passed
@original-brownbear original-brownbear deleted the minimize-apm-tracer-automaton branch October 2, 2024 16:40
@javanna
Copy link
Member

javanna commented Oct 2, 2024

@original-brownbear FYI this is relying on a utility that has been removed from Lucene 10 and moved to test code. It may make sense to backport this change if it makes a difference, but we are going back to not minimizing in the lucene_snapshot branch.

gmarouli pushed a commit to gmarouli/elasticsearch that referenced this pull request Oct 3, 2024
This thing was taking up 400k of heap since it wasn't minimized, turns
into ~2k after minimization.
matthewabbott pushed a commit to matthewabbott/elasticsearch that referenced this pull request Oct 4, 2024
This thing was taking up 400k of heap since it wasn't minimized, turns
into ~2k after minimization.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Core/Infra/Metrics Metrics and metering infrastructure >non-issue Team:Core/Infra Meta label for core/infra team v9.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants