C/C++
cppstrng.txt
Associated article: C++ String Performance
Tags: C/C++
Published source code accompanying the article by Lev Kochubeevsky in which he analyzes one of the more popular C++ string implementations, then present a string class that gives you the speed and efficiency of the automatic C strings, plus the convenience of the C++ string objects that are STL-friendly. Also see CPPSTRNG.ZIP.
C++ String Performance
by Lev Kochubeevsky
Listing One
#include <pthread.h>
#include "util.h"
unsigned int createStrings ( int n )
{
static char *samples[]={"something1","something2","something3","something4"};
printf ("...


