Skip to content

remove expensive inspect#151

Merged
binaryDiv merged 1 commit into
mainfrom
remove-expensive-inspect
Jul 16, 2026
Merged

remove expensive inspect#151
binaryDiv merged 1 commit into
mainfrom
remove-expensive-inspect

Conversation

@the-infinity

Copy link
Copy Markdown
Contributor

inspect.getfullargspec is very slow as it's just a wrapper around inspect.signature which loads a LOT of data. See python/cpython#81191 for details. With this MR, we do not run inspect.getfullargspec on every validation. At large JSONs like Datex2 JSON, one gets a 4x speed improvements with this change.

@binaryDiv binaryDiv merged commit 57cb14f into main Jul 16, 2026
6 checks passed
@binaryDiv binaryDiv deleted the remove-expensive-inspect branch July 16, 2026 09:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants