vcs-svn: improve support for reading large files
commit93b709c79eea6231b7d75a6817245a416b4f8fb5
authorJonathan Nieder <jrnieder@gmail.com>
Mon, 11 Oct 2010 02:46:24 +0000 (10 21:46 -0500)
committerJonathan Nieder <jrnieder@gmail.com>
Tue, 22 Mar 2011 21:32:09 +0000 (22 16:32 -0500)
tree0718648cdcf9dd2402e0b324ac9472420d9f4740
parentefc749b48f729992d838484d652ba24f5291ee28
vcs-svn: improve support for reading large files

Move from uint32_t to off_t as the fundamental unit of length used by
the line_buffer library.  Performance would get worse if anything but
I think it's worth it for support of deltas that need to skip large
pieces (> 4 GiB).

Exception: buffer_read_string still takes a uint32_t, since it keeps
its result in an in-core obj_pool.

Callers still have to be updated to take advantage of this.

Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: David Barr <david.barr@cordelta.com>
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
vcs-svn/line_buffer.c
vcs-svn/line_buffer.h