Skip to content

reduce uuid.UUID() memory footprint #75160

@wbolster

Description

@wbolster
mannequin
BPO 30977
Nosy @vstinner, @taleinat, @serhiy-storchaka, @wbolster
PRs
  • bpo-30977: define uuid.UUID.__slots__ to save memory #2785
  • bpo-30977: make uuid.UUID use __slots__ to reduce its memory footprint #9078
  • bpo-30977: rework code changes according to post-merge code review #9106
  • [3.7] bpo-34621: fix uuid.UUID (un)pickling compatbility with older Python versions (<3.7) #9133
  • 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 2018-09-06.11:35:57.364>
    created_at = <Date 2017-07-20.17:15:28.449>
    labels = ['3.8', 'library', 'performance']
    title = 'reduce uuid.UUID() memory footprint'
    updated_at = <Date 2018-09-10.13:11:09.040>
    user = 'https://github.com/wbolster'

    bugs.python.org fields:

    activity = <Date 2018-09-10.13:11:09.040>
    actor = 'taleinat'
    assignee = 'none'
    closed = True
    closed_date = <Date 2018-09-06.11:35:57.364>
    closer = 'taleinat'
    components = ['Library (Lib)']
    creation = <Date 2017-07-20.17:15:28.449>
    creator = 'wbolster'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 30977
    keywords = ['patch']
    message_count = 11.0
    messages = ['298738', '298739', '298757', '298785', '303194', '324665', '324671', '324672', '324682', '324683', '324923']
    nosy_count = 5.0
    nosy_names = ['vstinner', 'taleinat', 'serhiy.storchaka', 'wbolster', 'Nir Soffer']
    pr_nums = ['2785', '9078', '9106', '9133']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'resource usage'
    url = 'https://bugs.python.org/issue30977'
    versions = ['Python 3.8']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.8 (EOL)end of lifeperformancePerformance or resource usagestdlibStandard Library Python modules in the Lib/ directory

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions