xbmc/xbmc — pull request #4275 by bavison (2014-02-24 16:28:00+00:00)
Title: Use mmap to accelerate SQLite file accesses

Here are a couple of changes that between them make SQLite searches about 41% faster in my tests on a Raspberry Pi.

They have only been tested with PR #4235 in place, and the timings were also done using SQLite version 3080301, but they may still work with the older version 3071000 (though you'll probably get at least some warnings about line offsets in the patch operation).