lostluck commented on issue #22704: URL: https://github.com/apache/beam/issues/22704#issuecomment-1212568330
A solution would be to encode to a []byte, wrap it in a bytes.Reader, then use that for the hash, and then the raw bytes for the byte by byte lookup comparison (as we do now). I'm not sure if we can change enough of the hash APIs to use byte.Reader directly keep everything stack based though. This would be good to have a benchmark written and then a Before/After comparison of the change (even if the benchmark is new with the PR) to validate. -- 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]
