tdb: Inline the common part of tdb_oob
authorVolker Lendecke <vl@samba.org>
Sun, 4 Aug 2019 16:26:05 +0000 (18:26 +0200)
committerJeremy Allison <jra@samba.org>
Tue, 6 Aug 2019 21:49:27 +0000 (21:49 +0000)
commitf5735e2c666a5a494131c1d25f7ba5c7fbeae923
tree15887dc0eee7e09b78c6e872219263ea9d29c406
parent897bffa8166f643eb9063a848bb0c02455663317
tdb: Inline the common part of tdb_oob

When you set

in tdbtorture.c to make it more similar to locking.tdb use,

bin/tdbtorture -m -n 1 -l 100000 -s

becomes twice as fast. This is a pretty extreme case, but all other
tests that I did improve significantly as well.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
lib/tdb/common/io.c
lib/tdb/common/tdb_private.h