Skip to content

json.dumps(ensure_ascii=False) is ~10x slower than json.dumps() #67395

@methane

Description

@methane
BPO 23206
Nosy @rhettinger, @pitrou, @ezio-melotti, @methane, @serhiy-storchaka
Files
  • json-fast-unicode-encode.patch: Add non ascii version of speedup function.
  • test_encode_basestring.py: Lib/test/test_json/test_encode_basestring.py
  • json-fast-unicode-encode.patch
  • json-fast-unicode-encode.patch
  • json-fast-unicode-encode.patch
  • 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 2015-01-11.15:44:17.799>
    created_at = <Date 2015-01-09.13:17:25.193>
    labels = ['library', 'performance']
    title = 'json.dumps(ensure_ascii=False) is ~10x slower than json.dumps()'
    updated_at = <Date 2015-01-11.15:44:17.798>
    user = 'https://github.com/methane'

    bugs.python.org fields:

    activity = <Date 2015-01-11.15:44:17.798>
    actor = 'pitrou'
    assignee = 'none'
    closed = True
    closed_date = <Date 2015-01-11.15:44:17.799>
    closer = 'pitrou'
    components = ['Library (Lib)']
    creation = <Date 2015-01-09.13:17:25.193>
    creator = 'methane'
    dependencies = []
    files = ['37653', '37654', '37656', '37669', '37670']
    hgrepos = []
    issue_num = 23206
    keywords = ['patch']
    message_count = 8.0
    messages = ['233752', '233753', '233762', '233787', '233825', '233826', '233858', '233859']
    nosy_count = 6.0
    nosy_names = ['rhettinger', 'pitrou', 'ezio.melotti', 'Arfrever', 'methane', 'serhiy.storchaka']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'performance'
    url = 'https://bugs.python.org/issue23206'
    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