Skip to content

Commit 5b7bfd9

Browse files
Fix CI, NEWS updated
1 parent c7873c2 commit 5b7bfd9

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Include/internal/pycore_backoff.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ extern "C" {
4343

4444
// We only use values x and backoffs b such that
4545
// x + 1 is near to 2**(2*b+1) and x + 1 is prime.
46-
static uint16_t value_and_backoff_next[] = {
46+
static const uint16_t value_and_backoff_next[] = {
4747
MAKE_VALUE_AND_BACKOFF(6, 1),
4848
MAKE_VALUE_AND_BACKOFF(30, 2),
4949
MAKE_VALUE_AND_BACKOFF(126, 3),
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1-
Change ``backoff counter`` to use powers of 4 instead of powers of 2.
1+
Change ``backoff counter`` to use prime numbers instead of powers of 2.
2+
Use only 3 bits for ``counter`` and 13 bits for ``value``.
23
This allows to support values up to 8191. Patch by Mikhail Efimov.

0 commit comments

Comments
 (0)