sudoblockio / tackle

Tackle is a programmable configuration language for building modular utilities, code generators, and CLIs with schema validation baked in.
Apache License 2.0
52 stars 2 forks source link

Change all core models from pydantic models to classes #178

Open robcxyz opened 11 months ago

robcxyz commented 11 months ago

Core models (ie context, input, source, data, hooks, path) into classes. No need for pydantic here.

Perhaps keep it in models and pull out hook models into own file. Also might be a good place to put in methods that help set each of these objects.

Should be done after #177

robcxyz commented 11 months ago

Changing this yielded a massive improvement in startup time since now each hook doesn't have to import pydantic. After 177, we should have reasonable startup times