Skip to content

Proposal to improve the performance and UX of validator for batch scenarios #165

Description

@slon-aby

Currently the validator is restricted to a single input file. It throws a "Got unexpected extra argument(s)" error when either multiple input files or wildcards are used when calling it.

This is inconvenient when thousands of files needs to be validated.
Besides inconvenience this has serious performance implications: for each input file the Python interpreter is started and initialized, modules are loaded, schema is loaded and parsed, XSLT transforms are loaded and compiled. As a result, the validation of many files can require a lot of time.

Proposals are:

  • Allow multiple input files and wildcards.
  • Reorganize the code to load schemas and compile XSLTs only once, regardless of the number of input files.
  • Add a new mode that will read a list of files to be validated from stdin.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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