RussellSpitzer commented on a change in pull request #4050:
URL: https://github.com/apache/iceberg/pull/4050#discussion_r801970593



##########
File path: aws/src/main/java/org/apache/iceberg/aws/s3/S3InputStream.java
##########
@@ -81,6 +89,8 @@ public int read() throws IOException {
 
     pos += 1;
     next += 1;
+    readBytes.increment(1L);

Review comment:
       Do we want to update the metrics every time here? This feels like it may 
be expensive although I obviously would want to check benchmarks to be sure. I 
think a lot of systems tend to just update metrics every X operations and then 
do a final update in the "close" method




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



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to