Skip to content

[PERFORMANCE]: v11 JSON validation with large files is utterly slow #862

@jkowalleck

Description

@jkowalleck

since v11, after switching to the non-GPL JSON validators, the performance of validation of large files is utterly slow.

this is due to the slow performance of the used lib https://github.com/willynilly/rfc3987-syntax.

the following example file takes around a minute to validate: slow_validation.cdx.json
it has ~1200 entries that should conform to 'iri-reference' - which is syntax-checked by the mentioned library. see https://github.com/python-jsonschema/jsonschema/blob/6f6b3716421c07265e52a8552453b8047cf7210b/jsonschema/_format.py#L341-L350

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions