]> git.tuebingen.mpg.de Git - paraslash.git/commit - buffer_tree.h
Add btr pool support to the fecdec filter.
authorAndre Noll <maan@systemlinux.org>
Sat, 9 Jan 2010 21:25:17 +0000 (22:25 +0100)
committerAndre Noll <maan@systemlinux.org>
Sat, 9 Jan 2010 21:25:17 +0000 (22:25 +0100)
commit5f303cc5a96bfeaa66d2d6e899bf56d1d03ed085
tree45c95c7eb99845c305c965f51f8aa56f5454e6dd
parentd17f43b13cffb458a9931e878086e3d2caa28d25
Add btr pool support to the fecdec filter.

The consumers of the output of fecdec are typically the decoders
which have requirements on the minimal amount of data available
in one chunk. Using a buffer pool minimizes the number of memcpy()
operations needed during btr_merge when the current buffer is too small.

To fit the needs of fecdec, a new function btr_copy() is introduced
which copies a data buffer into the btr pool area and generates
btr buffers and references. btr_add_output_pool() had to be adjusted
a bit and all callers have been changed to match.

The patch also adds a new field "name" to the buffer_pool structure.
This makes the log output more readable.
buffer_tree.c
buffer_tree.h
fecdec_filter.c
http_recv.c
udp_recv.c