3 ms·
It will depend very much on what type of data you want to save. There are any number of descriptions of database formats and file system formats. You can read
by dalke 12y ago
It will depend very much on what type of data you want to save.
There are any number of descriptions of database formats and file system formats. You can read more about the sqlite B-tree-based format at https://www.sqlite.org/fileformat.html https://www.sqlite.org/fileformat.html .
The "cdb" ("constant database") of djb's is quite nice, if you have constant data and just want a hash table. See https://en.wikipedia.org/wiki/Cdb_%28software%29 https://en.wikipedia.org/wiki/Cdb_%28software%29 .
There are many stream-based formats which use the FourCC approach, of which PNG is the most common. See https://en.wikipedia.org/wiki/FourCC https://en.wikipedia.org/wiki/FourCC .
Then there are more special purpose data structures, like storing a suffix tree for genomic data. See http://www.cs.rpi.edu/~zaki/PaperDir/PS/SIGMOD07.pdf http://www.cs.rpi.edu/~zaki/PaperDir/PS/SIGMOD07.pdf , http://webhome.cs.uvic.ca/~thomo/papers/cikm08suffixtrees.pdf http://webhome.cs.uvic.ca/~thomo/papers/cikm08suffixtrees.pd... , and http://www.cidrdb.org/cidr2013/Papers/CIDR13_Paper3.pdf http://www.cidrdb.org/cidr2013/Papers/CIDR13_Paper3.pdf for three arbitrarily selected papers.