Skip to contentSkip to conversation

sqlite3: enable USE_PREAD

PATCH Applied Phil Blundell 2 participants 2 messages Sep 22, 2012 – Sep 24, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sqlite3: enable USE_PREAD

This gives a small but measureable performance improvement for I/O heavy workloads.

---
 meta/recipes-support/sqlite/sqlite3.inc       |    4 ++++
 meta/recipes-support/sqlite/sqlite3_3.7.13.bb |    2 +-
 2 files changed, 5 insertions(+), 1 deletions(-)
meta/recipes-support/sqlite/sqlite3.inc +4 -0
index 0cc5d65..70841f8 100644
@@ -17,6 +17,10 @@ export config_TARGET_LINK = "${CCLD}"
 export config_TARGET_CFLAGS = "${CFLAGS}"
 export config_TARGET_LFLAGS = "${LDFLAGS}"
 
+# pread() is in POSIX.1-2001 so any reasonable system must surely support it
+BUILD_CFLAGS += "-DUSE_PREAD"
+TARGET_CFLAGS += "-DUSE_PREAD"
+
 PACKAGES = "lib${BPN} lib${BPN}-dev lib${BPN}-doc ${PN}-dbg lib${BPN}-staticdev ${PN}"
 
 FILES_${PN} = "${bindir}/*"
meta/recipes-support/sqlite/sqlite3_3.7.13.bb +1 -1
index 4e050a3..48b50ac 100644
@@ -2,7 +2,7 @@ require sqlite3.inc
 
 LIC_FILES_CHKSUM = "file://sqlite3.h;endline=11;md5=65f0a57ca6928710b418c094b3570bb0"
 
-PR = "r0"
+PR = "r1"
 
 SRC_URI = "http://www.sqlite.org/sqlite-autoconf-3071300.tar.gz"
 S = "${WORKDIR}/sqlite-autoconf-3071300"
Signature · 1 line
1.7.9
#1 lore raw
Quoted 8 lines · Phil Blundell

This gives a small but measureable performance improvement for I/O heavy workloads.

---
 meta/recipes-support/sqlite/sqlite3.inc       |    4 ++++
 meta/recipes-support/sqlite/sqlite3_3.7.13.bb |    2 +-
 2 files changed, 5 insertions(+), 1 deletions(-)

Merged to master, thanks.

Richard