SyncJournalDb: Reimplement the db_is_empty logic from csync
authorJocelyn Turcotte <jturcotte@woboq.com>
Thu, 14 Sep 2017 14:34:14 +0000 (16:34 +0200)
committerRoeland Jago Douma <roeland@famdouma.nl>
Thu, 5 Oct 2017 20:01:37 +0000 (22:01 +0200)
commitecb4e96794340ba37914c770ef0e2dc4068eb5a8
treea18c390a114b113e73630e4d44613fd7f983f951
parent185cb2e39a83e252136b9aed6d1cf4b7fc4ea9be
SyncJournalDb: Reimplement the db_is_empty logic from csync

This reduces the initial sync local discovery time from
2.0 to 0.6 seconds in LargeSyncBench on my machine.
src/common/syncjournaldb.cpp
src/common/syncjournaldb.h
src/csync/csync.cpp
src/csync/csync_private.h
src/libsync/syncengine.cpp