bpereto opened a new pull request, #1022:
URL: https://github.com/apache/pulsar-client-go/pull/1022

   use golang/hash/maphash instead of crypto/sha256 for hash function of 
hashmap in Schema.hash()
   as the hash function is used for determining the hash key, it is safe to use 
a non-cryptographic function.
   
   Fixes #1021
   
   ### Motivation
   
   Improve performance of the SchemaCache by replacing the cryptographic hash 
function.
   
   ### Modifications
   
   Replaced the crypto/sha256 with golang/hash/maphash function.
   
   ### Verifying this change
   
   - [ ] Make sure that the change passes the CI checks.
   
   This change is a trivial rework / code cleanup without any test coverage.
   
   ### Does this pull request potentially affect one of the following parts:
   
   *If `yes` was chosen, please highlight the changes*
   
     - Dependencies (does it add or upgrade a dependency): no
     - The public API: no
     - The schema: no
     - The default values of configurations: no
     - The wire protocol: no
   
   ### Documentation
   
     - Does this pull request introduce a new feature? no
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to