phatboyg / Machete

Cut through the Crap, with Machete, a text parser, object mapper, and query engine.
Apache License 2.0
53 stars 26 forks source link

Lazy Initialization #43

Closed phatboyg closed 6 years ago

phatboyg commented 6 years ago

Let's face it, startup time to compile the entire schema is long (relatively).

And it's rare that the entire schema is used immediately. So validate it, and then wait until entity converters are used to initialize the property converters, etc. That way, all the expression compilation is happening in the background using the TPL, instead of occurring inline.

This should significantly reduce the startup time of using the schema.

phatboyg commented 6 years ago

All this work is in c51cf43