|
-
October 1st, 2003, 10:35 AM
#2
Yes, string concatenation is basically slow, since it usually involves making a new copy of the whole buffer with some extra bit appended.
The fastest way to do this is to use buffered IO. How do you write your file currently ? Depending on the extent of the speed problem, you may want to consider implementing your own buffering method, but that could be an overkill.
Get this small utility to do basic syntax highlighting in vBulletin forums (like Codeguru) easily.
Supports C++ and VB out of the box, but can be configured for other languages.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|