-
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.
Backport of perf: Remove expensive reflection from raft/mesh hot path…
… into release/1.15.x (#17493) * backport of commit 04b6a90 * backport of commit 13e4057 --------- Co-authored-by: Lincoln Stoll <me@lds.li> Co-authored-by: John Murret <john.murret@hashicorp.com>
- Loading branch information
1 parent
b41a4e7
commit d60e96f
Showing
5 changed files
with
32 additions
and
17 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
```release-note:improvement | ||
raft: Remove expensive reflection from raft/mesh hot path | ||
``` |
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 @@ | ||
// generated by deep-copy -pointer-receiver -o ./catalog_schema.deepcopy.go -type upstreamDownstream ./; DO NOT EDIT. | ||
|
||
package state | ||
|
||
// DeepCopy generates a deep copy of *upstreamDownstream | ||
func (o *upstreamDownstream) DeepCopy() *upstreamDownstream { | ||
var cp upstreamDownstream = *o | ||
if o.Refs != nil { | ||
cp.Refs = make(map[string]struct{}, len(o.Refs)) | ||
for k2, v2 := range o.Refs { | ||
cp.Refs[k2] = v2 | ||
} | ||
} | ||
return &cp | ||
} |
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,11 @@ | ||
#!/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 ./catalog_schema.deepcopy.go \ | ||
-type upstreamDownstream \ | ||
./ |