acora
acora copied to clipboard
Possible to save a built acora object to disk?
Is there an efficient way to save and load a built acora engine to disk?
The built Acora automata can safely be pickled.
With regards to efficiency, this probably only makes sense if building the tree takes sufficiently long. In my experience, unpickling a small(ish) automaton takes significantly longer than simply building it again.
If this is still relevant, please explain your use case in a bit more detail. Serializing automata is generally difficult, but in some cases local caching (in python's memory) can provide a major speedup.