|
-
April 17th, 1999, 04:03 PM
#2
Re: performance of fstream in C++
2 is likely to be faster, but there probably isn't as much difference in it as you might expect. Method 1 is unlikely to cause a disk seek on each line because in both 1 and 2 it's all memory cached until something causes the file to be flushed. So the difference is memory allocation and function call overhead, not disk hardware times.
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
|