aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorFranklin Wei <me@fwei.tk>2018-07-11 20:18:11 +0000
committerFranklin Wei <me@fwei.tk>2018-07-11 20:22:14 +0000
commita43b0560b50935210deddd60bd31c38cb31ff69a (patch)
tree05db1fdd4ae38c875d128ee624a78ed0a6af8f16 /Makefile
parent7ef3b693e36ee5935fb769bdef81317f2fe2caff (diff)
downloadcsaa-a43b0560b50935210deddd60bd31c38cb31ff69a.zip
csaa-a43b0560b50935210deddd60bd31c38cb31ff69a.tar.gz
csaa-a43b0560b50935210deddd60bd31c38cb31ff69a.tar.bz2
csaa-a43b0560b50935210deddd60bd31c38cb31ff69a.tar.xz
Improve dummy performance
The old code was creating a brand-new statement (in dynamic memory) on each operation, which slowed down over time. Replaced with persistent prepared statements.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 982a51a..ffd0944 100644
--- a/Makefile
+++ b/Makefile
@@ -7,7 +7,7 @@ sqlinit.c: sqlinit.txt
dummy_main.o: main.c
cc -c -o $@ $^ -DDUMMY $(CFLAGS)
-dummy_client: dummy_client.o crypto.o test.o iomt.o
+dummy_client: dummy_client.o crypto.o test.o iomt.o sqlinit.o
cc -o $@ $^ -lcrypto $(CFLAGS)
dummy_server: dummy_service.o dummy_main.o sqlinit.o
cc -o $@ $^ -lcrypto $(CFLAGS)