Archived

This topic is now archived and is closed to further replies.

The Alchemist

making a fast string class

Recommended Posts

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!!!!!

Share this post


Link to post
Share on other sites
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".

Share this post


Link to post
Share on other sites
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....

Share this post


Link to post
Share on other sites