CycloneDX / CycloneDX/cyclonedx-python-lib

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

Aperta
#862 2 commenti 0 reazioni 1 assegnatario Rivendicata da @jkowalleck Vedi su GitHub
performance
Lingua principale
Python
Stelle
116
Fork
67
Merge medio
8g 2h
PR unite (30g)
2

Descrizione

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 .

the following example file takes around a minute to validate: [slow_validation.cdx.json](https://github.com/user-attachments/files/21386342/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

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.