Skip to content

Optimise uuid platform detection #85536

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

Closed
zooba opened this issue Jul 21, 2020 · 4 comments
Closed

Optimise uuid platform detection #85536

zooba opened this issue Jul 21, 2020 · 4 comments
Assignees
Labels
3.8 (EOL) end of life 3.9 only security fixes 3.10 only security fixes performance Performance or resource usage stdlib Python modules in the Lib dir

Comments

@zooba
Copy link
Member

zooba commented Jul 21, 2020

BPO 41364
Nosy @zooba, @miss-islington
PRs
  • bpo-41364: Reduce import overhead of uuid module #21586
  • [3.9] bpo-41364: Reduce import overhead of uuid module (GH-21586) #21589
  • [3.8] bpo-41364: Reduce import overhead of uuid module (GH-21586) #21591
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = 'https://github.com/zooba'
    closed_at = <Date 2020-07-22.11:27:00.848>
    created_at = <Date 2020-07-21.20:41:32.129>
    labels = ['3.8', 'library', '3.9', '3.10', 'performance']
    title = 'Optimise uuid platform detection'
    updated_at = <Date 2020-07-22.11:27:00.847>
    user = 'https://github.com/zooba'

    bugs.python.org fields:

    activity = <Date 2020-07-22.11:27:00.847>
    actor = 'steve.dower'
    assignee = 'steve.dower'
    closed = True
    closed_date = <Date 2020-07-22.11:27:00.848>
    closer = 'steve.dower'
    components = ['Library (Lib)']
    creation = <Date 2020-07-21.20:41:32.129>
    creator = 'steve.dower'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 41364
    keywords = ['patch']
    message_count = 4.0
    messages = ['374079', '374080', '374081', '374091']
    nosy_count = 2.0
    nosy_names = ['steve.dower', 'miss-islington']
    pr_nums = ['21586', '21589', '21591']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'performance'
    url = 'https://bugs.python.org/issue41364'
    versions = ['Python 3.8', 'Python 3.9', 'Python 3.10']

    @zooba
    Copy link
    Member Author

    zooba commented Jul 21, 2020

    The uuid module calls platform.system() multiple times, even when the result is known from sys.platform. We can avoid some of these.

    @zooba zooba added 3.8 (EOL) end of life 3.9 only security fixes 3.10 only security fixes labels Jul 21, 2020
    @zooba zooba self-assigned this Jul 21, 2020
    @zooba zooba added stdlib Python modules in the Lib dir performance Performance or resource usage 3.8 (EOL) end of life 3.9 only security fixes 3.10 only security fixes labels Jul 21, 2020
    @zooba zooba self-assigned this Jul 21, 2020
    @zooba zooba added stdlib Python modules in the Lib dir performance Performance or resource usage labels Jul 21, 2020
    @zooba
    Copy link
    Member Author

    zooba commented Jul 21, 2020

    New changeset bf2f76e by Steve Dower in branch 'master':
    bpo-41364: Reduce import overhead of uuid module (GH-21586)
    bf2f76e

    @miss-islington
    Copy link
    Contributor

    New changeset 00466db by Miss Islington (bot) in branch '3.9':
    bpo-41364: Reduce import overhead of uuid module (GH-21586)
    00466db

    @zooba
    Copy link
    Member Author

    zooba commented Jul 22, 2020

    New changeset a18f22a by Steve Dower in branch '3.8':
    bpo-41364: Reduce import overhead of uuid module (GH-21586)
    a18f22a

    @zooba zooba closed this as completed Jul 22, 2020
    @zooba zooba closed this as completed Jul 22, 2020
    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    3.8 (EOL) end of life 3.9 only security fixes 3.10 only security fixes performance Performance or resource usage stdlib Python modules in the Lib dir
    Projects
    None yet
    Development

    No branches or pull requests

    2 participants