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 Symbol for more efficient de/serialization for use with NamedWritables #104738

Open
wants to merge 19 commits into
base: main
Choose a base branch
from

Conversation

mosche
Copy link
Contributor

@mosche mosche commented Jan 25, 2024

Symbols are somewhat similar to inlined strings, but binary encoded. Once created for any relevant ASCII constant, a Symbol can be looked up either by name or by a range of bytes by means of the respective murmur3 hash code.

Leveraging this, allocations can typically be avoided when reading a Symbol from a StreamInput given required bytes are already buffered. When writing a Symbol, bytes can be written as is without doing any encoding work on the thread local byte buffer.

@elasticsearchmachine elasticsearchmachine added the needs:triage Requires assignment of a team area label label Jan 25, 2024
@mosche mosche added >refactoring and removed needs:triage Requires assignment of a team area label labels Jan 29, 2024
@elasticsearchmachine elasticsearchmachine added the needs:triage Requires assignment of a team area label label Jan 29, 2024
@elasticsearchmachine
Copy link
Collaborator

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

@elasticsearchmachine elasticsearchmachine removed the needs:triage Requires assignment of a team area label label Feb 7, 2024
@mosche mosche requested review from a team as code owners March 4, 2024 09:48
@mosche mosche changed the base branch from feature/0-copy-indexing to main March 4, 2024 09:51
@mosche mosche removed request for a team March 4, 2024 09:52
@mosche mosche added the v8.14.0 label Mar 4, 2024
@mosche mosche marked this pull request as draft March 4, 2024 09:53
@mosche mosche added the test-full-bwc Trigger full BWC version matrix tests label Mar 10, 2024
@mosche mosche marked this pull request as ready for review March 11, 2024 05:50
@mosche
Copy link
Contributor Author

mosche commented Mar 11, 2024

@original-brownbear I found some time to wrap this up and polish things a bit. This should be ready now. WDYT?

@mosche mosche removed the test-full-bwc Trigger full BWC version matrix tests label Apr 18, 2024
@mosche
Copy link
Contributor Author

mosche commented Apr 30, 2024

@elasticmachine update branch

@mosche
Copy link
Contributor Author

mosche commented May 23, 2024

buildkite test this

@mosche
Copy link
Contributor Author

mosche commented May 23, 2024

@elasticmachine update branch

@mosche mosche added v8.14.1 auto-backport Automatically create backport pull requests when merged and removed auto-backport Automatically create backport pull requests when merged v8.14.1 labels May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Core/Infra/Core Core issues without another label >refactoring 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.

None yet

4 participants