[haiku-development] Re: [GSoC 2010] Services Kit API draft

  • From: Axel Dörfler <axeld@xxxxxxxxxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Wed, 14 Apr 2010 23:03:39 +0200

On 04/14/2010 09:40 PM, Fredrik Holmqvist wrote:
> BString is more efficient since it can avoid the first step and, it's
> internal storage can use tricks like copy on write.
> char * should be avoided and it's usage shouldn't be promoted IMHO.

That depends a lot on your usage; const char* should be used where it
makes sense -- constructing a BString for nothing is definitely a lot
more expensive than just passing an actual const char*.

Bye,
   Axel.

Other related posts: