Skip to content

Commit

Permalink
Clarify exact value
Browse files Browse the repository at this point in the history
  • Loading branch information
brandtbucher committed Sep 6, 2024
1 parent d29aad2 commit d2146e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Python/optimizer.c
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,7 @@ translate_bytecode_to_trace(
int bitcount = _Py_popcount32(counter);
int jump_likely = bitcount > 8;
/* If bitcount is 8 (half the jumps were taken), adjust confidence by 50%.
If it's 16 or 0 (all or none were taken), adjust by ~6%
If it's 16 or 0 (all or none were taken), adjust by 1/18th.
(since the future is still somewhat uncertain - see Laplace's
rule of succession, used here with 16 observations).
For values in between, adjust proportionally. */
Expand Down

0 comments on commit d2146e9

Please sign in to comment.