Skip to content

enum.Flag instance creation is slow #82226

Description

@anntzer
mannequin
BPO 38045
Nosy @ethanfurman, @serhiy-storchaka, @anntzer
PRs
  • bpo-38045: Avoid quadratic complexity when creating composite IntFlags. #16291
  • bpo-38045: Improve the performance of _decompose() in the enum.py #16483
  • 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 = None
    closed_at = <Date 2020-05-14.11:47:45.317>
    created_at = <Date 2019-09-06.12:18:00.704>
    labels = ['3.8']
    title = 'enum.Flag instance creation is slow'
    updated_at = <Date 2020-05-14.11:47:45.316>
    user = 'https://github.com/anntzer'

    bugs.python.org fields:

    activity = <Date 2020-05-14.11:47:45.316>
    actor = 'Antony.Lee'
    assignee = 'none'
    closed = True
    closed_date = <Date 2020-05-14.11:47:45.317>
    closer = 'Antony.Lee'
    components = []
    creation = <Date 2019-09-06.12:18:00.704>
    creator = 'Antony.Lee'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 38045
    keywords = ['patch']
    message_count = 5.0
    messages = ['351244', '351246', '351265', '357535', '368831']
    nosy_count = 3.0
    nosy_names = ['ethan.furman', 'serhiy.storchaka', 'Antony.Lee']
    pr_nums = ['16291', '16483']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue38045'
    versions = ['Python 3.8']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions