golang filter: change register configFactory to filterFactory #32183
CI (Envoy) / Mobile/Android
skipped
Feb 5, 2024 in 0s
Check was skipped
This check was not triggered in this CI run
Details
Request (pr/32183/main@f0c241f)
@doujiang24 f0c241f
#32183 merge
main@12e928c
golang filter: change register configFactory to filterFactory
We followed the C++ style to register configFactory, but it's not a proper choice for Golang filter.
Here is the Reasons:
- Golang introduced the ConfigParser interface to Parse/validate a config, configFactory does not need to parse config.
- better performance. By using fiterFactory, we could ommit generate a closure per http request, that may take ~1ns.
Yep, this is a breaking change, people need to change the register API.
So, I suggest we fix it earlier.Commit Message:
Additional Description:
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:]
Environment
Request variables
Key | Value |
---|---|
ref | 21c18f44bfa2180da1ee1c9b6d5775461845f877 |
sha | f0c241f |
pr | 32183 |
base-sha | 12e928c |
actor | @doujiang24 |
message | golang filter: change register configFactory to filterFactory... |
started | 1707106355.691536 |
target-branch | main |
trusted | false |
Build image
Container image/s (as used in this CI run)
Key | Value |
---|---|
default | envoyproxy/envoy-build-ubuntu:0ca52447572ee105a4730da5e76fe47c9c5a7c64 |
mobile | envoyproxy/envoy-build-ubuntu:mobile-0ca52447572ee105a4730da5e76fe47c9c5a7c64 |
Version
Envoy version (as used in this CI run)
Key | Value |
---|---|
major | 1 |
minor | 30 |
patch | 0 |
dev | true |
Loading