I found some of the 'sizing' snippets in the example came across as disingenuous: if you KNOW the size of the file, mmap it initially using that without the looping overhead. And you presumably know how much memory you have on a given system.
The description (at least as how I read the article) implies bolt is a truly naive implementation of a key/value DB