-
Notifications
You must be signed in to change notification settings - Fork 507
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FAB-11135] improving certpool peformance
Improved performance by loading system cert pool only once. Split Get(...certs) to separate function (Add & Get) for adding certs to certpool and getting updated certpool. go test -bench=. goos: linux goarch: amd64 pkg: github.com/hyperledger/fabric-sdk-go/pkg/core/config/comm/tls BenchmarkTLSCertPool-6 50000000 20.5 ns/op BenchmarkTLSCertPoolSameCert-6 5000000 264 ns/op BenchmarkTLSCertPoolDifferentCert-6 500000 3223 ns/op PASS ok github.com/hyperledger/fabric-sdk-go/pkg/core/config/comm/tls 9.902s Change-Id: Icb98a463de05885830efad9ff72a686e025e5e6a Signed-off-by: Sudesh Shetty <[email protected]>
- Loading branch information
1 parent
0d62377
commit 4b6b3f8
Showing
9 changed files
with
402 additions
and
80 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
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.