Skip to content

Slow parsing with IgnoreUnknownArguments = true #243

@ta-stott-oe

Description

@ta-stott-oe

I find that enabling ParserSettings.IgnoreUnknownArguments can dramatically slow down parsing, even if none of the supplied arguments are unknown.

I've added a small example here to demonstrate this: ta-stott-oe/CommandLineParserTimings

In this demo, the parsing time seems to increase in a non-linear fashion as the number of arguments increases.

image

Parsing 10 arguments takes > 14 seconds!

This is using CommandLineParser v2.2.1 with .NET Framework 4.6.

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