Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible to save a built acora object to disk? #13

Open
zmr opened this issue Jan 24, 2017 · 1 comment
Open

Possible to save a built acora object to disk? #13

zmr opened this issue Jan 24, 2017 · 1 comment

Comments

@zmr
Copy link

zmr commented Jan 24, 2017

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

@aolieman
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants