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

⚡️ Speed up function _get_url_for_version by 29% in python_modules/dagster/dagster/_generate/download.py #78

Open
wants to merge 1 commit into
base: codeflash/optimize-remove_none_recursively-2024-06-26T09.20.53
Choose a base branch
from

Commits on Jul 27, 2024

  1. ⚡️ Speed up function _get_url_for_version by 29%

    Here's an optimized version of the given program. The key improvement here is reducing the function call overhead by directly embedding `_get_target_for_version` logic within `_get_url_for_version`.
    
    
    
    With this change.
    1. `_get_target_for_version` is optimized using a single return statement.
    2. `_get_url_for_version` is slightly optimized by inlining the logic, but it does explicitly keep the optimized `_get_target_for_version` function for potential reuse elsewhere.
    codeflash-ai[bot] authored Jul 27, 2024
    Configuration menu
    Copy the full SHA
    3474c7c View commit details
    Browse the repository at this point in the history