Skip to content

Speedup of calc_release_version.py #1383

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Aug 17, 2023

Conversation

vector-of-bool
Copy link
Contributor

This changeset adds some minor stylistic changes and a significant speedup for calc_release_version. Refer to 18b2dde for details.

Enable debug output in calc-version selftest
Instead of continually asking Git whether a particular commit hash is
pointed-to by a given tag, ask Git upfront for a mapping between all
commit hashes and the associated tags. Then, look for the commit in
the mapping as a single step.
Copy link
Contributor

@rcsanchez97 rcsanchez97 left a comment

Choose a reason for hiding this comment

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

As I mentioned in a comment to #1382 , the algorithm in this script (which is shared across the C driver, C++ driver, and libmongocrypt) still needs to function on Python 2.6. While I like the changes, I am not sure that these will work on older Python implementations. Do you know if that presents a problem for what you want to do?

Copy link
Contributor

@rcsanchez97 rcsanchez97 left a comment

Choose a reason for hiding this comment

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

I like this. LGTM.

@vector-of-bool vector-of-bool merged commit 4eaa2e9 into mongodb:master Aug 17, 2023
@vector-of-bool vector-of-bool deleted the calc-version-speedup2 branch August 24, 2023 23:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants