Skip to content

reassembly: small optimizations to overlapExisting#578

Merged
notti merged 1 commit intogoogle:masterfrom
jandos:reassembly_review
Dec 21, 2018
Merged

reassembly: small optimizations to overlapExisting#578
notti merged 1 commit intogoogle:masterfrom
jandos:reassembly_review

Conversation

@jandos
Copy link
Copy Markdown
Contributor

@jandos jandos commented Dec 20, 2018

Reassembly's overlapExisting function had 2 unnecessary operations

  • Adding diff to start when we already know that result will be same as half.nextSeq
  • Subtracting diff from a variable e which is never used later

@notti notti merged commit ffcd710 into google:master Dec 21, 2018
@notti
Copy link
Copy Markdown
Contributor

notti commented Dec 21, 2018

Looks good. Thanks

traetox pushed a commit to traetox/gopacket that referenced this pull request Jan 2, 2019
reassembly: small optimizations to overlapExisting
traetox pushed a commit to traetox/gopacket that referenced this pull request Jan 2, 2019
reassembly: small optimizations to overlapExisting
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants