-
-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Append has become quite slow #324
Comments
Hi Karl-Heinz, Could it be you are including also the time needed to load and initialize the rdd, macro compiler etc? I tested your code in my very slow 10 year old laptop and it only takes 0.25 secs to complete the appends |
Hi Chris, hi Karl-Heinz, |
Guys, tried it on two Win10 machines and the append speed is acceptable. So it seems to be a problem with win8.1 64-Bit. Karl (Faller) mentioned the same speed issues and If i remember correctly he uses Win8.1 too. I´ll ask him if he still faces the same problems. Karl-Heinz |
Guys, i installed the earlier build 2.1.0.0 (Bandol GA 2.1) - XSharpSetup210aFox.exe. This build appends 1000 records in less than 0,1 seconds, no matter how the setexclusive setting is. It seems that the RDD changes introduced in the build 2.2.0.0 (Bandol GA 2.2) are responsible for my Win8.1 append problems. Fixed locking problems in the DBFCDX RDD that were causing problems when opening files shared between multiple apps but also between multiple threads. The RDD now should properly detect that the CDX was updated by another process or thread. But that doesn't really explain why there are now such huge time differences between Win10 and Win8.1 ? Karl-Heinz |
Karl-Heinz, |
Thanks Robert, |
Indeed there seems to be an important general problem now. The following takes only a couple seconds to finish in my PC, while in X# it takes several minutes! Note that this is only pure dbf, no indexes involved at all. Could it just be the speed of the FileStream class and need to move to WIn32 API for file write, as we had done in vulcan as well?
|
I'll look at this after releasing the current build. |
OK, so ignore my private message :) |
Guys, |
Hi Robert, |
Wolfgang, Robert |
Thank you very much, Robert! |
…mit on flush. Added that to the DBF:_writeRecord() to speed up appends.
When i run the test it takes seconds ! to append 100 records. VO appends 100 or 1000 records in less than 0,1 seconds.
Karl-Heinz
The text was updated successfully, but these errors were encountered: