Skip to content
This repository was archived by the owner on Jul 26, 2026. It is now read-only.

Improve description of backoff sequence in db.loose - #119

Merged
Byron merged 1 commit into
gitpython-developers:masterfrom
EliahKagan:quadratic
Jan 27, 2025
Merged

Improve description of backoff sequence in db.loose#119
Byron merged 1 commit into
gitpython-developers:masterfrom
EliahKagan:quadratic

Conversation

@EliahKagan

Copy link
Copy Markdown
Member

The sequence of backoff wait times used in gitdb.db.loose is quadratic rather than exponential, as discussed in #115 (comment).

This corrects the variable name by making it more general, and the comment by having it explicitly describe the backoff as quadratic.

This is conceptually related to GitoxideLabs/gitoxide#1815, but this is a non-breaking change, as no interfaces are affected: only a local variable and comment.

The sequence of backoff wait times used in `gitdb.db.loose` is
quadratic rather than exponential, as discussed in:
gitpython-developers#115 (comment)

This corrects the variable name by making it more general, and the
comment by having it explicitly describe the backoff as quadratic.

This is conceptually related to GitoxideLabs/gitoxide#1815, but
this is a non-breaking change, as no interfaces are affected: only
a local variable and comment.

@Byron Byron left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot!

It looks like this mistake has been following me since my youth 😄.

@Byron
Byron merged commit f36c0cc into gitpython-developers:master Jan 27, 2025
@EliahKagan

Copy link
Copy Markdown
Member Author

No problem!

@EliahKagan
EliahKagan deleted the quadratic branch January 27, 2025 08:43
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants