I have a trie
which I am using to do some string processing. I have a simple compiler which generates trie
from some data. Once generated, my trie
won't change at run time.
I am looking for an approach where I can persist the trie in a file and load it effectively. I have looked at sqllite
to understand how they are persisting b-tree
but their file format looks bit advanced and I may not need all of those.
It'd be helpful if someone can provide some ideas to persist and read the trie
. I am programming using C.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…