Otto wrote:Hello Silvio,
I think you need to implement time measurements in the individual steps so that you can see where in which section of the source code the program is slow.
You can link xbrowse and also implement a time measurement in the methods there.
Best regards,
Otto
Otto,
I make this
@ 16, 5 SCROLLBAR oScrollDbf HORIZONTAL SIZE 425,10 PIXEL OF oDlg ;
RANGE 1,ntotal_records ;
ON DOWN (
nSec := SECONDS(), oDbf:Skip(), IIf( oDbf:EoF(), oDbf:GoBottom(),),;
Refresh_Say(oSay,oDbf) ,;
Refresh_data1(.....),;
Refresh_data2(....),
Msginfo(SECONDS() - nSec)) ;
ON UP (nSec := SECONDS(), oDbf:Skip( -1 ) ,;
Refresh_Say(oSay,oDbf) ,;
Refresh_data1(......),;
Refresh_data2(......),
Msginfo(SECONDS() - nSec))
data1 need for refresh oBrw1, data2 for obrw2
Now I change the archive I use last 200 records of 10526 - I tried to use a statistics archive , but I made a test
Maybe to make a good statistic you have to use 2000 records like I used in the old Dos program, but some use 500/800
It give
0.92 /0.96/ ,1.06If I use entire archive ( archive of lotto from 1871 to 2024 - 10526 records) I have
5.50/5.60/5.62/5.67
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com