Skip to content

append performance with lots of arguments #184

@pauldraper

Description

@pauldraper

The append action has O(n^2) performance, due to copying the list for every item.

argparse/argparse.js

Lines 1559 to 1560 in a645a9a

items = _copy_items(items)
items.push(values)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions