Skip to content
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

Document recommendation for instantiating/managing validator instances #71

Open
rodaine opened this issue Oct 26, 2023 · 2 comments
Open
Labels
Feature New feature or request

Comments

@rodaine
Copy link
Member

rodaine commented Oct 26, 2023

Title. A few strategies are available, but want to encourage folks to reuse a validator instead of creating a new one for every call to Validate.

@rodaine rodaine changed the title Document recommendation for instantiating/managing a validator instance Document recommendation for instantiating/managing validator instances Oct 26, 2023
@Masedko
Copy link

Masedko commented Oct 26, 2023

You can compare this to the database instance. You create a database instance that you use everywhere, instead of creating a new one every time you need to query something. The same goes with validator instance

@rodaine
Copy link
Member Author

rodaine commented Oct 30, 2023

I like that, @Masedko!

@rodaine rodaine added the Feature New feature or request label Oct 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants