Re: r1344347 - stream buffering in config_file.c
From: Julian Foad <julianfoad_at_btopenworld.com>
Date: Fri, 4 Apr 2014 12:21:42 +0100 (BST)
Bert Huijben wrote:
> Julian Foad wrote:
Sure -- I appreciate why it was worth doing that way.
> [...]
I don't think it's fair to assume that an abstraction need be that inefficient, although I admit that an implementation easily can be that inefficient if we don't take care of it.
Part of what I was thinking is, why are we re-inventing the standard <stdio.h> streams interface (fread, fgetc, fungetc, ...) in Subversion? And I started wondering if we could hook in to the standard streams. The GNU C library (glibc) does provide hooks for doing this:
http://www.gnu.org/software/libc/manual/html_mono/libc.html#Custom-Streams
But it's not standardized, and Windows doesn't seem to provide any such facility.
I don't think we need to do anything right now, but I wanted to note the suggestion.
- Julian
|
This is an archived mail posted to the Subversion Dev mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.