tags 275852 patch thanks On Mon, May 09, 2005 at 12:18:10AM +0200, Christian Aichinger wrote: > Ok, I've got something fix-like ready ;)
Ok, now I've got something that takes more code, is probably a bit more complicated, but it's the right solution for the problem IMHO. Fill() now checks if a \n\n is already in the buffer, and returns immedately if so. If it doesn't find one it loads Size (32k by default) bytes from the file, and looks for a \n\n there. It continues like this until a \n\n is found. The old buffers are kept in a vector in the meantime. In the end Buffer (or result) is built by memcpy()ing together all the smaller chunks. The patch is available in apt--export--0--patch-1. A small optimisation is available in apt--export--0--patch-5. Cheers, Greek0
signature.asc
Description: Digital signature