acora icon indicating copy to clipboard operation
acora copied to clipboard

Possible to save a built acora object to disk?

Open zmr opened this issue 8 years ago • 1 comments

Is there an efficient way to save and load a built acora engine to disk?

zmr avatar Jan 24 '17 20:01 zmr

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.

aolieman avatar Nov 10 '17 00:11 aolieman