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

Remove poor-mans compression in InternalSearchHit and friends #20472

Merged
merged 2 commits into from
Sep 14, 2016

Conversation

s1monw
Copy link
Contributor

@s1monw s1monw commented Sep 14, 2016

We still use some crazy poor mans compression in InternalSearchHit that
uses a thread local and an unordered map as a lookup table if requested.
Stuff like this should be handled by compression on the transport layer
rather than in-line in the serialization code. This code is complex enough.

We still use some crazy poor mans compression in InternalSearchHit that
uses a thread local and an unordered map as a lookup table if requested.
Stuff like this should be handeled by compression on the transport layer
rather than in-line in the serialization code. This code is complex enough.
} else {
out.writeVInt(context.shardHandleLookup().get(shard));
}
if (shard == null) {
Copy link
Member

Choose a reason for hiding this comment

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

writeOptionalStreamable ?

@javanna
Copy link
Member

javanna commented Sep 14, 2016

left a minor comment, LGTM otherwise

@s1monw s1monw merged commit d402ca0 into elastic:master Sep 14, 2016
@s1monw s1monw deleted the dont_be_smart branch September 14, 2016 13:25
s1monw added a commit that referenced this pull request Sep 14, 2016
We still use some crazy poor mans compression in InternalSearchHit that
uses a thread local and an unordered map as a lookup table if requested.
Stuff like this should be handled by compression on the transport layer
rather than in-line in the serialization code. This code is complex enough.
s1monw added a commit that referenced this pull request Sep 14, 2016
We still use some crazy poor mans compression in InternalSearchHit that
uses a thread local and an unordered map as a lookup table if requested.
Stuff like this should be handled by compression on the transport layer
rather than in-line in the serialization code. This code is complex enough.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants