Re: [bug-gnulib] strfile: new module

2006-05-30 Thread Bruce Korb
On 5/30/06, Bruno Haible <[EMAIL PROTECTED]> wrote: > +tmp = realloc (out, pos + BUFSIZ); Quadratic runtime behaviour: if you don't have particular luck with the realloc() implementation, for large files, this loop will spend most of its time in realloc(), copying memory around. Since I w

Re: [bug-gnulib] strfile: new module

2006-05-30 Thread Bruno Haible
Simon Josefsson wrote: > This is used in GnuTLS, and I need it in Shishi now, so I thought that > it should be a module. What do you think? I agree it's common enough that we can use it in gnulib. > Possibly, there should be a xstrfile too, that uses xrealloc... Yes. > Index: modules/strfile