Skip to content

Optimize Ajv Schema Compilation and Validation Caching in BaseChecker #697

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from

Conversation

kilavvy
Copy link

@kilavvy kilavvy commented Jul 25, 2025

Description:
This PR improves performance and memory usage by caching Ajv instances and compiled schemas in the BaseChecker class.
Now, each rule's schema is compiled only once and reused, reducing redundant operations and making Solhint more efficient, especially on large projects.

@dbale-altoros
Copy link
Collaborator

@kilavvy this is really cool !
thanks for that
try to fix the test and i can merge it and put your name in the log file!

thanks!

@dbale-altoros
Copy link
Collaborator

@kilavvy is the lint what seems to be failing

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