Skip to content

Import time regression #6790

Open
Open
@holmanb

Description

@holmanb

Between 2.31.0 and 2.32.3, import time increased by ~25%. This appears to have been caused by #6667, which changed the expensive load_verify_locations() to run at import time (in 2.32.0).

Reproduction Steps

Compare import time of versions with:

$ python3 -X importtime -c 'import requests' 2> requests_import.log
$ tuna requests_import.log

2.31.0

image

2.32.3:

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions