Repository navigation
Conversation
|
I haven't changed the javadoc to match the implementation, as it seems that a first review is likely to have an opinion as to API changes |
71e89a8 to
909e2a9
Compare
|
Hi |
|
I've approved the CI to run but looks like this is a breaking change. Let's wait for the CI results. |
|
@ShubhamChaturvedi7 thanks. The CI failures loom to me to be unrelated to my change - failing in I had hoped that this would not be a breaking change. It only changes non public fields and internal classes, but I dont know the threshold for breaking changes for this library! Happy to work with you or someone else to lessen the breaks which reducing the CPU cost, Please advise of the best next steps |
|
Hi @ShubhamChaturvedi7. The CI failures loom to me to be unrelated to my change - failing in Configure AWS Credentials I had hoped that this would not be a breaking change. It only changes non public fields and internal classes, but I dont know the threshold for breaking changes for this library! Happy to work with you or someone else to lessen the breaks which reducing the CPU cost, Please advise of the best next steps BTW I have another performance optimisation in #2175 awaiting review |
|
This seems not viable as a solution. Introducing a lock on the single Mac will be an unacceptable bottleneck in a highly concurrent system.
We run many CPU and encryption is 50% or the workload
Has this been benchmarked on a NUMA system with high concurrency?
Get Outlook for Android<https://aka.ms/ghei36>
…________________________________
From: Shubham Chaturvedi ***@***.***>
Sent: Tuesday, 10 November 2026 23:45:56
To: aws/aws-encryption-sdk-java ***@***.***>
Cc: Mike Skells ***@***.***>; Author ***@***.***>
Subject: Re: [aws/aws-encryption-sdk-java] perf: avoid expensive call to Mac.getInstance (PR #2174)
@ShubhamChaturvedi7 approved this pull request.
—
Reply to this email directly, view it on GitHub<#2174?email_source=notifications&email_token=AFJ6LZJ434AZZ5B3QTZJTZL5YOSDJA5CNFSNUABKM5UWIORPF5TWS5BNNB2WEL2QOVWGYUTFOF2WK43UKJSXM2LFO4XTKOBVGEZDSOJZG44KM4TFMFZW63VGMF2XI2DPOKSWK5TFNZ2KYZTPN52GK4S7MNWGSY3L#pullrequestreview-5851299978>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AFJ6LZJYHFDTYUGNUEZ4RNT5YOSDJAVCNFSNUABEKJSXA33TNF2G64TZHM2TGOJZGAYDKNZ3JFZXG5LFHMZTOMZWHA4DCMZYGGQXMAQ>.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS<https://github.com/notifications/mobile/ios/AFJ6LZLGM35OHH2FOVOMC4D5YOSDJA5CNFSNUABKM5UWIORPF5TWS5BNNB2WEL2QOVWGYUTFOF2WK43UKJSXM2LFO4XTKOBVGEZDSOJZG44KM4TFMFZW63VGMF2XI2DPOKSWK5TFNZ2KUZTPN52GK4S7NFXXG> and Android<https://github.com/notifications/mobile/android/AFJ6LZPNW7UY75ZFQ2TXH735YOSDJA5CNFSNUABKM5UWIORPF5TWS5BNNB2WEL2QOVWGYUTFOF2WK43UKJSXM2LFO4XTKOBVGEZDSOJZG44KM4TFMFZW63VGMF2XI2DPOKSWK5TFNZ2K4ZTPN52GK4S7MFXGI4TPNFSA>. Download it today!
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Issue #, if available:
No Issue
Description of changes:
Minimal change to avoid calls to Mac.getInstance
Call to this were only used to extract the provider, which I though would be better expressed as an enum, as there are very few MacAlgorithms in use.
In my (closed source) benchmark this call accounts for 5.6% of the CPU time taken for a decryption (a call to
AwsCrypto.decryptData), with small payloads, and thee same for encryptionI cant fully build this locally so cant run a test cycle prior to submitting this PR
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
Check any applicable: