In particular, it was in a routine where a large treeview menu was being created.
I think that I have determined that the slowdown is due to the increased time Windows 10 takes to open files, in this case .ICO files.
To prove my theory, I wrote the below program.
If I comment out the WTL command, the program runs a bit faster on the Windows 10 computer due to its faster processor. The WTL command writes debugging info to a file named DEBUG.LOG. It must open and close the file 10000 times.
If I leave the WTL command in the program, it takes 9.98 seconds on my Windows 7 computer and 93.34 seconds on my Windows 10 computer. This is what Dian has reported - about 10x longer.
I suspect that there are issues with Windows 10 file caching.
Does anyone have any information about this?
Code: Select all
#INCLUDE "dcdialog.CH"
FUNCTION Main()
LOCAL i, nSeconds := Seconds(), aSeconds := Array(10000)
FOR i := 1 TO Len(aSeconds)
aSeconds[i] := Seconds()
WTL aSeconds[i]
NEXT
? Seconds() - nSeconds
wait
RETURN nil