Jump to content
  • Advertisement

Archived

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

The Alchemist

making a fast string class

This topic is 5751 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!