Skip to content

csv.DictWriter is slow when writing files with large number of columns #62419

@mtraskin

Description

@mtraskin
mannequin
BPO 18219
Nosy @terryjreedy, @vstinner, @bitdancer, @methane, @serhiy-storchaka, @Mariatta, @hughdbrown
PRs
  • [Do Not Merge] Convert Misc/NEWS so that it is managed by towncrier #552
  • Files
  • csvdictwriter.patch
  • csvdictwriter.v2.patch
  • csvdictwriter.v3.patch
  • csvdictwriter.v4.patch
  • issue18219.patch
  • issue18219v2.patch
  • issue18219v3.patch
  • issue18219v4.patch
  • issue18219v5.patch
  • issue18219v6.patch
  • issue18219v7.patch
  • issue18219v8.patch
  • issue18219v9.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 2016-10-21.10:54:34.855>
    created_at = <Date 2013-06-15.05:12:39.063>
    labels = ['3.7', 'library', 'performance']
    title = 'csv.DictWriter is slow when writing files with large number of columns'
    updated_at = <Date 2017-03-31.16:36:23.298>
    user = 'https://bugs.python.org/mtraskin'

    bugs.python.org fields:

    activity = <Date 2017-03-31.16:36:23.298>
    actor = 'dstufft'
    assignee = 'none'
    closed = True
    closed_date = <Date 2016-10-21.10:54:34.855>
    closer = 'methane'
    components = ['Library (Lib)']
    creation = <Date 2013-06-15.05:12:39.063>
    creator = 'mtraskin'
    dependencies = []
    files = ['30598', '30605', '31297', '31570', '45167', '45168', '45169', '45170', '45172', '45173', '45174', '45175', '45176']
    hgrepos = []
    issue_num = 18219
    keywords = ['patch']
    message_count = 23.0
    messages = ['191197', '191198', '191263', '191604', '195233', '195245', '196821', '279058', '279101', '279105', '279107', '279108', '279109', '279115', '279116', '279117', '279118', '279119', '279120', '279121', '279124', '279128', '279129']
    nosy_count = 10.0
    nosy_names = ['terry.reedy', 'peter.otten', 'vstinner', 'r.david.murray', 'methane', 'python-dev', 'serhiy.storchaka', 'mtraskin', 'Mariatta', 'hughdbrown']
    pr_nums = ['552']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'performance'
    url = 'https://bugs.python.org/issue18219'
    versions = ['Python 3.6', 'Python 3.7']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.7 (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