Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Use pread64 instead of lseek/read

Using pread64 instead of lseek/read makes half the syscalls. Would you
like some free performance?

Change-Id: I2942adc18878ae80b41862aba945cd50e285bb95
  • Loading branch information...
commit 488d783673190a2d9eece46eb0255587ebdfe6e5 1 parent ab99172
@kruton kruton authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 dist/Android.mk
View
4 dist/Android.mk
@@ -23,7 +23,7 @@ ifneq ($(TARGET_ARCH),arm)
LOCAL_LDLIBS += -lpthread -ldl
endif
-LOCAL_CFLAGS += $(common_sqlite_flags)
+LOCAL_CFLAGS += $(common_sqlite_flags) -DUSE_PREAD64
LOCAL_SHARED_LIBRARIES := libdl
@@ -82,7 +82,7 @@ ifneq ($(TARGET_ARCH),arm)
LOCAL_LDLIBS += -lpthread -ldl
endif
-LOCAL_CFLAGS += $(common_sqlite_flags)
+LOCAL_CFLAGS += $(common_sqlite_flags) -DUSE_PREAD64
LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)
Please sign in to comment.
Something went wrong with that request. Please try again.