eumiro commented on code in PR #33050:
URL: https://github.com/apache/airflow/pull/33050#discussion_r1283578925
##########
tests/test_utils/perf/perf_kit/repeat_and_time.py:
##########
@@ -120,10 +119,10 @@ def monte_carlo(total=10000):
for _ in range(0, total):
x_val = random.random() ** 2
y_val = random.random() ** 2
- if math.sqrt(x_val + y_val) < 1.0:
+ if x_val + y_val < 1:
Review Comment:
Mathematically if `math.sqrt(x) < 1` then `x < 1` as well, but this is
probably useless optimization that hides the original idea. So I have reverted
this change (and only replaced `1.0` with `1`).
--
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]