Efficient string handling 
Author Message
 Efficient string handling

We need to build up an output file of multi-lined messages.  Only at the end
do we know if an individual message it is valid or not.  Then it should
either go on the end of a valid output file or then end of a valid error
file.

My problem is that we have noticed that building up a string with embedded
CrLfs is a couple of hundred times slower than writing a file line by line.
I assume this is because the string is constantly being moved around memory
as it expands.  Is there anyway to make string concatenation more efficient
?.  It suits our application to have the full message available - as we also
want to send it out to message queueing systems as a unit.

At the moment, I am just using the & operator to build up the string.

Any help???

TvG



Mon, 28 May 2001 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Efficient handling of strings from serial port device?

2. Efficient converting from byte-string to word-string

3. Efficient way of string manipulation

4. Efficient string concatination

5. Efficient string concatenation

6. Efficient use of strings (Dim, Redim, and all that)

7. Most efficient way to strip leading zeros from string

8. Handling apostrophes embedded in strings

9. Calculation and string handling

10. Internal Memory Handling of Strings

11. How handle quotes within a string?

12. handling UTF-8 encoded strings

 

 
Powered by phpBB® Forum Software