making a fast string class
i just made a string class
and it is pretty much a excapsulament of a dynamic string, altering basicly is deleting the actual string in the memory and allocating a new one with the new size... and is slow as a hell
i tought chaging it by making it a block based string,so everytime that the string grows besides its default size it allocs another block( each block will be a fixed ammount of chars), thats would significantly reduce the ammount of news but is still not fast enough
so i kinda ran off ideas
any sugestions for a fast string class?
-------------------------------
MOTHERSHIP!!! hahaha! very funny! now take me outta here!!!!!
#include <string>std::string anyString;
[edited by - MadKeithV on October 22, 2002 7:17:17 AM]
Any attempt to come up with a fast string class should be preceded by:
a) learning what''s already available;
b) going to the Google archives of comp.lang.c++ and searching for "Peter Olcott".
a) learning what''s already available;
b) going to the Google archives of comp.lang.c++ and searching for "Peter Olcott".
quote:Original post by SabreMan
b) going to the Google archives of comp.lang.c++ and searching for "Peter Olcott".
And a few hours to read the thousands of posts he prompted....
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement