merlimat commented on PR #17948:
URL: https://github.com/apache/pulsar/pull/17948#issuecomment-1270865354

   One more change could be: 
   
   ```java
    public SchemaHash getSchemaHash() {
           return schemaHash == null ? SchemaHash.of(new byte[0], null) : 
schemaHash;
       }
   ```
   
   to avoid the `new byte[0]` allocation and instead passing a `null`;


-- 
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