Antonio Linares wrote:Enrico,
How many records you have on the DBF ?
About 75000 records.
EMG
Antonio Linares wrote:Enrico,
How many records you have on the DBF ?
Enrico,
I created a 80.000 records DBF (using dbcre8.exe) and tested it with Harbour:
ST: 0,299 secs
MT: 0,345 secs
You are right, MT apps are slower ![]()
I am reporting it to the Harbour dev group:
StefanHaupt wrote:Enrico,
just to understand, what could be the advantages using MT instead of ST ? What functions could be put in threads ?
Im my understanding a database application is a single thread application with single tasks, e.g. browsing a dbf or searching in a dbf. What can be done, to get simultaneous tasks ?
Stefan
Antonio Linares wrote:Enrico,
I created a 80.000 records DBF (using dbcre8.exe) and tested it with Harbour:
ST: 0,299 secs
MT: 0,345 secs
You are right, MT apps are slower
I am reporting it to the Harbour dev group:
https://groups.google.com/forum/?fromgr ... Ap9qFn9gSs
Enrico,
Mindaugas just answered. his explanation sounds logical, but nobody would want to slow down his app...
Hi all,
Well, I think that (x)harbour applications are super fast. So if the multithreading makes them lose a little speed to my unimportant. The multithreading can bring many good features to our applications.
My two (euro) cents.
Some good uses for MT exe:
Index multiple files simultaneously.
Open non modal dialogs in different threads.
Run long tasks with multiple theads, 1 just for the dialog management and as many as possible for the other tasks.
Obviously, MT exe only will be faster in functions that use multiple threads in multi nuclear processors.
Antonio Linares wrote:Enrico,
Mindaugas just answered. his explanation sounds logical, but nobody would want to slow down his app...
Enrico,
Have you checked, when you use a background task, if the app speed decrease ?
Antonio Linares wrote:Enrico,
Have you checked, when you use a background task, if the app speed decrease ?
Enrico, Antonio: a test of that kind don't make sense in MT.
Try to make multiple scans of the same dbf file: one after the other in ST, parallel to each other in MT.
Patrizio wrote:Enrico, Antonio: a test of that kind don't make sense in MT.
Enrico, the error is considered an application MT as an application ST with an extra function.
MT applications are designed especially for parallel processes (we use .NET MT app for processing many ascii files at same time).
Patrizio wrote:Enrico, the error is considered an application MT as an application ST with an extra function.
MT applications are designed especially for parallel processes (we use .NET MT app for processing many ascii files at same time).
Enrico Maria Giordano wrote:Patrizio,
That's why I prefer background tasks.
EMG