My problem doesn’t matter how I build sqlite - my binary is much slower than the pre-compiled sqlite on the download page (about 3-6 times depending on the request).
I use sqlite3.h and sqlite3.c from an amalgam source:
http://www.sqlite.org/sqlite-amalgamation-3070602.zip
When compiling sqlite, I added the following flags:
gcc -s -O4 -I. -fomit-frame-pointer -DNDEBUG -DSQLITE_OS_WIN=1 -DSQLITE_HAVE_READLINE=0 -DSQLITE_THREADSAFE=1 -DSQLITE_TEMP_STORE=2 -DSQLITE_ENABLE_RTREE -DSQLITE_ENABLE_FTS3 -DSQLITE_OMIT_COMPILEOPTION_DIAGS -DSQLITE_ENABLE_COLUMN_METADATA -DNO_TCL
I built it with both MINGW and MSVS 2010.
Does anyone know how to build sqlite to get the same binary code as on the download page?
Any help would be appreciated.
source share