summaryrefslogtreecommitdiff
path: root/dist/sqlite3.c
diff options
context:
space:
mode:
authorJeff Brown <jeffbrown@google.com>2012-02-29 21:12:41 -0800
committerJeff Brown <jeffbrown@google.com>2012-02-29 21:26:08 -0800
commit3ab5bec554013c655c8d7439b708ba1380c8eef8 (patch)
tree03e1c3c261d71b1f0c18a0e785cbb311de8ab0c0 /dist/sqlite3.c
parent40a8df2afea8009142f6ff635956f05b2801dd00 (diff)
Use fdatasync() to improve performance.
Linux has a working fdatasync() so we should use it! This change alone improves performance by around 20% by reducing the number of synchronous I/O writes of irrelevant metadata changes. Change-Id: Iebe0c32a7e018ec0ced2347b7d62b2b7dc5aa376
Diffstat (limited to 'dist/sqlite3.c')
-rw-r--r--dist/sqlite3.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/dist/sqlite3.c b/dist/sqlite3.c
index fe17797..7f46e6e 100644
--- a/dist/sqlite3.c
+++ b/dist/sqlite3.c
@@ -25,10 +25,6 @@
#ifndef SQLITE_API
# define SQLITE_API
#endif
-// Begin Android Add
-#define fdatasync fsync
-#undef __APPLE__
-// End Android Add
/************** Begin file sqliteInt.h ***************************************/
/*
** 2001 September 15