SQLite Now Faster With Memory Mapped I/O

Written by Michael Larabel in Free Software on 21 May 2013 at 04:31 PM EDT. 5 Comments
FREE SOFTWARE
SQLite 3.7.17 was released yesterday. What makes this new release of the popular lightweight SQL database software noteworthy is that it introduces support for memory-mapped I/O.

Rather than using read/write system calls for dealing with database disk files, SQLite 3.7.17 adds support for accessing the disk now by directly using memory-mapped I/O. By using the SQLite memory mapped I/O calls, disk operations should be much faster as the disk contents no longer needs to be copied between kernel and user-space. SQLite developers have said by using this MMIO support the performance could be nearly doubled for some intensive tasks.

By using memory-mapped I/O, the SQLite library will also use less RAM since it shares pages with the operating system page cache rather than creating copies of those pages as with the old system calls. More details on this new mmap support in SQLite can be found on SQLite.org.

Other changes with SQLite 3.7.17 include new sqlite3 interfaces, enhancements to the extension loading mechanism, enhancing FTS3, virtual table improvements, and many bug-fixes. More details on the new SQLite library release can be found from its release page.
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.

Popular News This Week