Closed kallekoo closed 1 month ago
This is expected behaviour. A single evaluator instance caches aggressively. This is how Pkl manages to be deterministic, which is a core design goal.
but that leads to an overhead when the evaluator is being set up
Not caching leads to overhead everywhere else.
Hello!
Using pkl-go v0.6.0, when creating an evaluator like so
and evaluating a FileSource like so
where the underlying data for the path
p
changes between evaluations, the evaluator output remains unchanged.The workaround is to recreate the evaluator at appropriate intervals, but that leads to an overhead when the evaluator is being set up.