Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Comparison of fputs() in vfp to a .net equivalent
Message
From
24/08/2011 16:47:54
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Comparison of fputs() in vfp to a .net equivalent
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01521721
Message ID:
01521721
Views:
141
I am trying to optimize the speed of a batch process that writes an activity log. Writing several hundred thousand rows to a cursor takes about 8 seconds. Writing the same data to a text file with fputs() take about 4 seconds (there could be some play in that 4 seconds - doing some dtoc(xxx,1) conversions before writing that might slow it down). I'd like to optimize this even further.

I have very little .net experience, but now might be the time to take the plunge. What .net low level file i/o equivalent would I use in .net and how would it compare performance wise?

I am also considering purchasing sequiter's codebase library - I used it many years ago. I think it will speed up my append/replace code? Any thoughts on that?

I saw some older threads on here comparing string handling capabilities between vfp and .net, but I don't think they were what I needed.
Next
Reply
Map
View

Click here to load this message in the networking platform