iindyk commented on code in PR #25351:
URL: https://github.com/apache/beam/pull/25351#discussion_r1097807904


##########
sdks/python/apache_beam/transforms/util.py:
##########
@@ -502,8 +502,11 @@ def _calculate_next_batch_size(self):
     target = self._max_batch_size
 
     if self._target_batch_duration_secs:
-      # Solution to a + b*x = self._target_batch_duration_secs.
-      target = min(target, (self._target_batch_duration_secs - a) / b)
+      # Solution to b*x = self._target_batch_duration_secs.
+      # We ignore the fixed cost in this computation as it has negligeabel

Review Comment:
   I think this is wrong: what if the element overhead and fixed cost are both 
large?



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