]> mj.ucw.cz Git - libucw.git/commit
After a lot of benchmarking replaced the old super-smart bbcopy()
authorMartin Mares <mj@ucw.cz>
Tue, 24 Sep 2002 21:38:21 +0000 (21:38 +0000)
committerMartin Mares <mj@ucw.cz>
Tue, 24 Sep 2002 21:38:21 +0000 (21:38 +0000)
commita256a05fe3785c245f77761db19658c8bbc2b87a
treeccb4f91a88233aaeff25bebb2408d5deebc4aaed
parent3b0d474dd52fab80a5adca3b4b82c2db47a88657
After a lot of benchmarking replaced the old super-smart bbcopy()
by a much simpler solution based on the bdirect interface and inlined
the fast path. Surprisingly, the new version is faster under real load
(the explanation is very simple: we use very large buffers for the
indexer and hence the bbcopy optimizations triggered rarely) and it also
works on all fastbuf streams, not only file-based ones.

Also, made bdirect_* inline.
lib/fastbuf.c
lib/fastbuf.h
lib/fb-file.c