Bytevector output ports: Optimized buffer growing.
commit7f39982b5d8d24ff5a01a3c5a58a8eba36bcfbea
authorLudovic Court`es <ludovic.courtes@laas.fr>
Fri, 23 Feb 2007 09:40:05 +0000 (23 09:40 +0000)
committerLudovic Court`es <ludovic.courtes@laas.fr>
Fri, 23 Feb 2007 09:40:05 +0000 (23 09:40 +0000)
tree9840397dbf2a76dd5d282e499d1953c0ed8a5768
parenta72057457e5a086c803483cbcc9af37890bbd670
Bytevector output ports: Optimized buffer growing.

* src/ports.c (bop_buffer_grow): Take a MIN_SIZE parameter.  Perform only
  one malloc/realloc after having computed a suitable size.
  (bop_write): Updated accordingly.

git-archimport-id: lcourtes@laas.fr--2006-libre/guile-r6rs-libs--devo--0--patch-28
ChangeLog
src/ports.c