Title: [Feature]: Improve performance by using a faster library for parsing json schemas · Issue #1086 · python-openapi/openapi-core · GitHub
Open Graph Title: [Feature]: Improve performance by using a faster library for parsing json schemas · Issue #1086 · python-openapi/openapi-core
X Title: [Feature]: Improve performance by using a faster library for parsing json schemas · Issue #1086 · python-openapi/openapi-core
Description: Suggested Behavior Use fastjsonschema instead of jsonschema, or even jsonschema-rs. jsonschema-rs claims to be 30x to 390x faster than jsonschema (3x to 7x faster than fastjsonschema). Why is this needed? I have an OpenAPI spec that's mo...
Open Graph Description: Suggested Behavior Use fastjsonschema instead of jsonschema, or even jsonschema-rs. jsonschema-rs claims to be 30x to 390x faster than jsonschema (3x to 7x faster than fastjsonschema). Why is this ...
X Description: Suggested Behavior Use fastjsonschema instead of jsonschema, or even jsonschema-rs. jsonschema-rs claims to be 30x to 390x faster than jsonschema (3x to 7x faster than fastjsonschema). Why is this ...
Opengraph URL: https://github.com/python-openapi/openapi-core/issues/1086
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Feature]: Improve performance by using a faster library for parsing json schemas","articleBody":"### Suggested Behavior\n\nUse `fastjsonschema` instead of `jsonschema`, or even `jsonschema-rs`. `jsonschema-rs` claims to be 30x to 390x faster than `jsonschema` (3x to 7x faster than `fastjsonschema`).\n\n### Why is this needed?\n\nI have an OpenAPI spec that's moderately big, roughly 1.6M and parsing it with `OpenAPI` takes about 15s on my computer. I unfortunately can't share it, but I can share the profiling on it.\n\nFor one-time use it would be fine, but we use it in tests to validate responses, so this adds quite a bit of runtime to tests.\n\n### References\n\nThis profiling of just loading the OpenAPI yaml file, using `OpenAPI.from_file_path(\"\u003cpath\u003e\")`\n\nThe part in blue is `jsonschema`.\n\n\u003cimg width=\"4272\" height=\"2005\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/6b1084ee-cc22-4c9d-8101-04984a77b35c\" /\u003e\n\nA bit more detail here: [x.txt](https://github.com/user-attachments/files/24676678/x.txt)\n\n### Would you like to implement a feature?\n\nNone","author":{"url":"https://github.com/mikicz","@type":"Person","name":"mikicz"},"datePublished":"2026-01-16T17:06:54.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/1086/openapi-core/issues/1086"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:157c568c-4dee-b8dd-baaa-07ed596341ab |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E310:DE287:283F751:3510768:696B28F4 |
| html-safe-nonce | dbf41acc07990f573cdb4a3220c6093fddb191756a1a65218d633d4011f442a7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMzEwOkRFMjg3OjI4M0Y3NTE6MzUxMDc2ODo2OTZCMjhGNCIsInZpc2l0b3JfaWQiOiI0MzA5NDkyMzgzMjQyNDYzNDc2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 2fa0fc11b291d4a54393a936fb2ee68cc0e748d4d53f55afee1e763d8c7048a1 |
| hovercard-subject-tag | issue:3822861590 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python-openapi/openapi-core/1086/issue_layout |
| twitter:image | https://opengraph.githubassets.com/cc979bdd66a82b4c49b26c5729987c2984b8c7a522b5392b77796978a15a5c07/python-openapi/openapi-core/issues/1086 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/cc979bdd66a82b4c49b26c5729987c2984b8c7a522b5392b77796978a15a5c07/python-openapi/openapi-core/issues/1086 |
| og:image:alt | Suggested Behavior Use fastjsonschema instead of jsonschema, or even jsonschema-rs. jsonschema-rs claims to be 30x to 390x faster than jsonschema (3x to 7x faster than fastjsonschema). Why is this ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mikicz |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| turbo-cache-control | no-preview |
| go-import | github.com/python-openapi/openapi-core git https://github.com/python-openapi/openapi-core.git |
| octolytics-dimension-user_id | 126442889 |
| octolytics-dimension-user_login | python-openapi |
| octolytics-dimension-repository_id | 104200746 |
| octolytics-dimension-repository_nwo | python-openapi/openapi-core |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 104200746 |
| octolytics-dimension-repository_network_root_nwo | python-openapi/openapi-core |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 82560a55c6b2054555076f46e683151ee28a19bc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width