CycloneDX / CycloneDX/cyclonedx-python-lib

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

未关闭
#862 2 条评论 0 个 reaction 已指派 1 人 已被 @jkowalleck 认领 在 GitHub 查看
performance
主要语言
Python
星标
116
派生
67
平均合并
8 天 2 小时
30 天内合并 PR
2

描述

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

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。