Skip to content

golang: optimize copyHeaderMapToGo: reduce memory copy.#36023

Merged
ravenblackx merged 1 commit into
envoyproxy:mainfrom
mosn:header-copy-opt
Sep 9, 2024
Merged

golang: optimize copyHeaderMapToGo: reduce memory copy.#36023
ravenblackx merged 1 commit into
envoyproxy:mainfrom
mosn:header-copy-opt

Conversation

@doujiang24

Copy link
Copy Markdown
Member

Commit Message:
Additional Description:
In my local benchmark(requires some hack for benchmark), it makes header map init faster 10%+.
from 2656ns to 2269ns for per header map init.

Risk Level:
Testing:
Docs Changes:
Release Notes:
Platform Specific Features:
[Optional Runtime guard:]
[Optional Fixes #Issue]
[Optional Fixes commit #PR or SHA]
[Optional Deprecated:]
[Optional API Considerations:]

It makes header map init faster 10%+.

Signed-off-by: doujiang24 <doujiang24@gmail.com>
@ravenblackx ravenblackx self-assigned this Sep 9, 2024
@ravenblackx ravenblackx merged commit 3537377 into envoyproxy:main Sep 9, 2024
@doujiang24 doujiang24 deleted the header-copy-opt branch September 10, 2024 03:32
spacewander pushed a commit to mosn/envoy that referenced this pull request Sep 12, 2024
…6023)

Commit Message:
Additional Description:
In my local benchmark(requires some hack for benchmark), it makes header
map init faster 10%+.
from 2656ns to 2269ns for per header map init.

Risk Level:
Testing:
Docs Changes:
Release Notes:
Platform Specific Features:
[Optional Runtime guard:]
[Optional Fixes #Issue]
[Optional Fixes commit #PR or SHA]
[Optional Deprecated:]
[Optional [API
Considerations](https://github.com/envoyproxy/envoy/blob/main/api/review_checklist.md):]

Signed-off-by: doujiang24 <doujiang24@gmail.com>
johnlanni pushed a commit to johnlanni/envoy that referenced this pull request Mar 25, 2025
…6023)

Commit Message:
Additional Description:
In my local benchmark(requires some hack for benchmark), it makes header
map init faster 10%+.
from 2656ns to 2269ns for per header map init.

Risk Level:
Testing:
Docs Changes:
Release Notes:
Platform Specific Features:
[Optional Runtime guard:]
[Optional Fixes #Issue]
[Optional Fixes commit #PR or SHA]
[Optional Deprecated:]
[Optional [API
Considerations](https://github.com/envoyproxy/envoy/blob/main/api/review_checklist.md):]

Signed-off-by: doujiang24 <doujiang24@gmail.com>
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.

3 participants