csync_reconcile: Optimize reconcile by avoiding alocations
authorOlivier Goffart <ogoffart@woboq.com>
Sun, 24 Sep 2017 19:58:41 +0000 (21:58 +0200)
committerOlivier Goffart <olivier@woboq.com>
Wed, 27 Sep 2017 09:41:55 +0000 (11:41 +0200)
commit041c5e6d441ec2eb5e2bac69b97c82982d0b9ff2
tree6eb2970bee5dc9ca75ed323a7f32afce2def9490
parenta2ce739192a1407496ba014b4d8f0099d886157c
csync_reconcile: Optimize reconcile by avoiding alocations

Fix performence regression from commit d66c2b5faecc689c52df23d7dbc44c894b92febc
For every new file we would look up every parent directories. Allocating
a new QByteArreay for every parent riectory just to know if it is in the other
tree is wasting lots of CPU.
Use a ByteArrayRef trick, similar to QStringRef
src/csync/csync_private.h
src/csync/csync_reconcile.cpp