IIRC, the algorithms used by bzip works with fairly large blocks. So if you need to sync often (say, two sync points less than a KB or so apart, you probably shouldn't use bzip2).
/ Niels Möller ()
Previous text:
2002-10-16 16:15: Subject: Re: Bzip2 (Pike C Module documentation)
*reads docs*
Reading the libbzip2 docs, it seems that the library is a tad hairy in this regard. There doesn't seem to be any real support for reading or writing partially synced bzip2'd streams. There is no sync command, only end. And the only support I can see about reading multiple ended compressions from one stream is to check whether there's data left in the "in" stream after decompression.
(One should not confuse the high level interface that uses FILE* with reading/writing partially synced streams.)
/ Brevbäraren
pike-devel@lists.lysator.liu.se