Re: pseudo-specs for a String class: char *buf

From: Henrik Nordstrom <henrik_at_henriknordstrom.net>
Date: Sat, 06 Sep 2008 14:00:32 +0200

On ons, 2008-09-03 at 16:53 +0200, Kinkie wrote:

> I didn't really think of different buffer types. Do you have in mind
> any scenario where it would be useful?

One example is if KBuf gets implemented using a mallocator that may
reallocate the memory area to reduce fragmentation.

> On the other hand, char* are significantly more efficient for common
> operations, consistently with the design goals..

Agreed.

Regards
Henrik
Received on Sat Sep 06 2008 - 12:00:39 MDT

This archive was generated by hypermail 2.2.0 : Sun Sep 07 2008 - 12:00:03 MDT