string storage

  • Thread starter Thread starter TallGuy63
  • Start date Start date
T

TallGuy63

Guest
I'm needing to pile up an unknown number of fixed length strings of data (34 characters each) and am currently just adding to the end of a std::string.At some points this string could get piled as high as several thousand, making the std::string over maybe as much as several thousand characters long. Would I improve the speed or performance by turning it into an array of std::strings instead and putting a limit on it beforehand (say std::string[67000] or so) ?

I'm not using a database program for good reasons, and all the data in the string is also stored to a binary file; but I keep the string in memory for quick access to any part of it...

Continue reading...
 
Back
Top