On 23/11/14 10:32, Mario Domenech Goulart wrote: > Hi Andy, > > On Sun, 23 Nov 2014 02:57:09 +0000 Andy Bennett <andy...@ashurst.eu.org> > wrote: > >> + Introduces a dependency on srfi-13 for the string-copy! and >> substring/shared procedures. This is so that we can do buffer >> management with the minimal of excess copying and garbage >> collection. > > Beware that: > > * string-copy! is currently broken for some cases in CHICKEN. Master has > a fix (6b36695d94e0bd977e0d85d48438f621128e1101), but it has net been > released yet.
Thanks Mario! I've looked at that patch: it seems to only affect overlapping buffers. I think, in the openssl case, the private buffer is always distinct from the user buffer. Can anyone think of any cases where that wouldn't be the case? > * substring/shared is the same as substring in CHICKEN, AFAIK. That's only called once in the corner cases so it doesn't really matter if it wastes a copy. It's just there to stop junk in the tail of the buffer being sent to the user. Regards, @ndy -- andy...@ashurst.eu.org http://www.ashurst.eu.org/ 0x7EBA75FF _______________________________________________ Chicken-users mailing list Chicken-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-users