Skip to content

Conversation

@original-brownbear
Copy link
Contributor

  • Optimize Bulk Message Parsing and Message Length Parsing

  • findNextMarker took almost 1ms per invocation during the PMC rally track

    • Fixed to be about an order of magnitude faster by using Netty's bulk ByteBuf search
  • It is unnecessary to instantiate an object (the input stream wrapper) and throw it away, just to read the int length from the message bytes

    • Fixed by adding bulk int read to BytesReference

backport of #39634

* Optimize Bulk Message Parsing and Message Length Parsing

* findNextMarker took almost 1ms per invocation during the PMC rally track
  * Fixed to be about an order of magnitude faster by using Netty's bulk `ByteBuf` search
* It is unnecessary to instantiate an object (the input stream wrapper) and throw it away, just to read the `int` length from the message bytes
  * Fixed by adding bulk `int` read to BytesReference
@original-brownbear original-brownbear added >enhancement :Distributed Coordination/Network Http and internode communication implementations backport labels Mar 6, 2019
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-distributed

@original-brownbear original-brownbear merged commit aaecaf5 into elastic:7.x Mar 6, 2019
@original-brownbear original-brownbear deleted the 39634-7.x branch March 6, 2019 07:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport :Distributed Coordination/Network Http and internode communication implementations >enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants