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

use the string optimization for map keys in the packet handler map #2892

Merged
merged 1 commit into from
Dec 5, 2020

Conversation

marten-seemann
Copy link
Member

I failed to create a benchmark that proves that this actually better, but according to https://dave.cheney.net/high-performance-go-workshop/sydney-2019.html#using_byte_as_a_map_key, this change should enable a compiler optimization.

@marten-seemann marten-seemann changed the title use the string optimization for map keys use the string optimization for map keys in the packet handler map Nov 21, 2020
@codecov
Copy link

codecov bot commented Nov 21, 2020

Codecov Report

Merging #2892 (45963c1) into master (69158cf) will decrease coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2892      +/-   ##
==========================================
- Coverage   85.77%   85.77%   -0.00%     
==========================================
  Files         133      133              
  Lines        9187     9185       -2     
==========================================
- Hits         7880     7878       -2     
  Misses        959      959              
  Partials      348      348              
Impacted Files Coverage Δ
packet_handler_map.go 72.77% <100.00%> (-0.25%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 69158cf...45963c1. Read the comment docs.

@marten-seemann marten-seemann merged commit 31b05bc into master Dec 5, 2020
@marten-seemann marten-seemann deleted the optimize-packet-handler-map-map-keys branch December 6, 2020 02:52
@aschmahmann aschmahmann mentioned this pull request May 14, 2021
71 tasks
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.

None yet

2 participants