-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf: remove expensive reflection from xDS hot path
Backport of #14934 to 1.13 release series. Replaces the reflection-based implementation of proxycfg's ConfigSnapshot.Clone with code generated by deep-copy.
- Loading branch information
Showing
17 changed files
with
1,639 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/usr/bin/env bash | ||
|
||
readonly PACKAGE_DIR="$(dirname "${BASH_SOURCE[0]}")" | ||
cd $PACKAGE_DIR | ||
|
||
# Uses: https://github.com/globusdigital/deep-copy | ||
deep-copy -pointer-receiver \ | ||
-o ./proxycfg.deepcopy.go \ | ||
-type ConfigSnapshot \ | ||
-type ConfigSnapshotUpstreams \ | ||
-type configSnapshotConnectProxy \ | ||
-type configSnapshotIngressGateway \ | ||
-type configSnapshotMeshGateway \ | ||
-type configSnapshotTerminatingGateway \ | ||
./ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.