Thread-safety of cel.Program #878
-
Hi, I have a cache for caching the evaluation of I found that if I am caching My question - is it ok to use the same I did fairly simple tests & parallel benchmarks with race detector running - and didn't got any race conditions - so looks like it's ok, but would like to get verification from the maintainers of the project. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
My apologies for not spotting this question sooner. The Hopefully that helps! |
Beta Was this translation helpful? Give feedback.
My apologies for not spotting this question sooner. The
cel.Program
is intended to be concurrency safe. There's no shared state within thecel.Program
. If state tracking is enabled, then there's an allocation done per-evaluation to capture intermediate values from a singleEval
call, but this state isn't shared either.Hopefully that helps!