Skip to content
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

feat: fix performance issue in python version >= 3.11.X #121

Merged

Conversation

zvigrinberg
Copy link
Collaborator

@zvigrinberg zvigrinberg commented Mar 12, 2024

Description

Because of a performance issue with native pip show command , starting from python version 3.11.X, introduced an alternate flow of using pipdeptree python utility , instead of pip freeze --all + pip show list_of_deps as a source of data for building the dependency tree of python ( the algorithm remain the same anyway).

Related issue (if any): fixes JIRA APPENG-2154

Checklist

  • I have followed this repository's contributing guidelines.
  • I will adhere to the project's code of conduct.

Additional Info

The new logic will be controlled by a new setting (env var/property) - EXHORT_PIP_USE_DEP_TREE, if it will be set to true, it will use the pipdeptree as the source to build the dependency tree, otherwise, it will use native pip commands pip freeze + show. default is EXHORT_PIP_USE_DEP_TREE=false.

Signed-off-by: Zvi Grinberg <zgrinber@redhat.com>
Signed-off-by: Zvi Grinberg <zgrinber@redhat.com>
Signed-off-by: Zvi Grinberg <zgrinber@redhat.com>
Signed-off-by: Zvi Grinberg <zgrinber@redhat.com>
@zvigrinberg zvigrinberg merged commit 0a02893 into RHEcosystemAppEng:main Mar 13, 2024
5 checks passed
@zvigrinberg zvigrinberg deleted the fix/improve-python-performance branch May 1, 2024 06:37
JudeNiroshan added a commit to RHEcosystemAppEng/exhort-java-api that referenced this pull request May 16, 2024
## Description

Improve Python build tree Performance in EXHORT-JAVA-API
JIRA: https://issues.redhat.com/browse/APPENG-2154

**Related issue (if any):** fixes #issue_number_goes_here
same fix has been done in exhort-javascript-api ->
RHEcosystemAppEng/exhort-javascript-api#121

## Checklist

- [x] I have followed this repository's contributing guidelines.
- [x] I will adhere to the project's code of conduct.

## Additional information

> Anything else?

---------

Signed-off-by: Jude Niroshan <jude.niroshan11@gmail.com>
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.

1 participant