I'd like to try the .NET FluentValidation library for form input validation on an upcoming project. In looking over the documentation, I came across this:
A note on performance
Instantiation of validators is an expensive process due to the expression tree compilation and parsing within the RuleFor definitions. Because of this, it's recommended that you use validator instances as singletons- once instantiated they should be cached and reused, rather than being instantiated multiple times. Validators do not contain any shared state, so it should also be safe to reuse them in multithreaded scenarios too.
The best approach to caching the validator instances would be to use an IoC container (eg, StructureMap) to manage the instance lifecycles.
I don't know what this means? Can somebody help?