Skip to content

optimize sort_keys in json module by using operator.itemgetter() #67681

@wbolster

Description

@wbolster
mannequin
BPO 23493
Nosy @rhettinger, @vstinner, @ezio-melotti, @methane, @serhiy-storchaka, @wbolster, @MojoVampire, @BoboTiG
PRs
  • bpo-23493: json: Change sort_keys in Python encoder same to C #8131
  • Files
  • repro-sorting.py
  • 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-07-06.12:32:12.671>
    created_at = <Date 2015-02-20.16:25:56.375>
    labels = ['library', 'performance']
    title = 'optimize sort_keys in json module by using operator.itemgetter()'
    updated_at = <Date 2021-09-02.16:04:31.207>
    user = 'https://github.com/wbolster'

    bugs.python.org fields:

    activity = <Date 2021-09-02.16:04:31.207>
    actor = 'vstinner'
    assignee = 'none'
    closed = True
    closed_date = <Date 2018-07-06.12:32:12.671>
    closer = 'methane'
    components = ['Library (Lib)']
    creation = <Date 2015-02-20.16:25:56.375>
    creator = 'wbolster'
    dependencies = []
    files = ['50256']
    hgrepos = []
    issue_num = 23493
    keywords = ['patch']
    message_count = 18.0
    messages = ['236302', '236345', '236423', '236434', '236435', '236436', '236437', '236438', '236439', '236440', '236441', '236442', '236545', '321157', '321171', '321195', '400929', '400934']
    nosy_count = 9.0
    nosy_names = ['rhettinger', 'vstinner', 'ezio.melotti', 'Arfrever', 'methane', 'serhiy.storchaka', 'wbolster', 'josh.r', 'Tiger-222']
    pr_nums = ['8131']
    priority = 'low'
    resolution = 'rejected'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'performance'
    url = 'https://bugs.python.org/issue23493'
    versions = ['Python 3.5']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      performancePerformance 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