Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ADO Stream Object
Message
 
To
17/03/2000 07:24:51
Bob Tracy
Independent Consultant
Driftwood, Texas, United States
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00346740
Message ID:
00347395
Views:
21
>Yeah, I know, that's the reason I didn't seriously look at XML as a component messaging method in ADO 2.0. Reading and writing a static file seemed like too much overhead. Do you see an advantage in using streams over recordsets for messaging?

You guys need to loose the notion that writing to a file is expensive - it's not! In fact, file based output in many situations is much more efficient than memory based output, because file buffers are optimized for sequential output. And even writing a string from memory to a file in a single buffer write is blazing fast.

I've shown a few examples of this in the past with doing string concats in memory as opposed to writing output to a file and reading the string in at the end. For a file that's 1 meg the file based output is almost 5 times faster. As the file gets bigger this number increases exponentially!

And don't forget a COM stream is implemented as a file in most cases anyway - you just don't see the physical file because the stream interfaces hide all that.


The biggest problems with files is that you have to put them somewhere and manage lifetime of them (ie. delete when you're done, which sometimes is not so trivial).
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform