Open alex-jitbit opened 1 year ago
@alex-jitbit Good afternoon. Thanks for submitting feature request and the statistics w.r.t. performance on the MD5 calculation. Kindly note that AWS SDK for .NET also targets NetStandard20
netcoreapp3.1
and .NET Framework
. This needs review with the team. Feel free to contribute a PR which could be reviewed by the team.
@alex-jitbit I do like the idea of conditionally switching to the .NET version when it is available. We need to see how easy it would be for the SDK to use either implementation depending on the environment.
Describe the feature
As you can see, .NET 6 built-in MD5 api is 1.5x faster and allocates 20x less memory. Any reason for not using .NET built in
MD5.HashData()
static method?Use Case
MD5 hashing is used heavily in the SDK, switching to .NET 's built-in will speed things up a lot.
Acknowledgements
AWS .NET SDK and/or Package version used
3.7.106.30
Targeted .NET Platform
.NET 5/6
Operating System and version
Windows 10, Ubuntu