PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → WinDev application performance issues
WinDev application performance issues
Iniciado por daniel, 23,may. 2017 11:23 - 2 respuestas
Publicado el 23,mayo 2017 - 11:23
Hello all,

I am having performance issues with a simple WinDev application and I cannot figure out how to solve them.

I have the same application in WinDev and Java. In WinDev it takes around 27 seconds to complete and in Java (and also C++) it only takes around 150 milliseconds.

You can see the source code here, just push the button 'program device' in the WinDev window to launch the process (the Java app is a console app, it doesn't have user interface):
WinDev project: https://www.dropbox.com/s/3vm0yrfcb3wc46r/TestProject.zip…
Java project (Eclipse): https://www.dropbox.com/s/j896r3pl5kh2iit/playground_java.zip…

As I say the app is very simple, it just initializes an array of clases, reads a file and fills the array according to some basic calculations. It doesn't use any data base so I don't really now why this huge performance issue between Java/C++ and WinDev.

I must say I just build a simple app that iterates 180 million times with a 'for' loop and this app takes 5 seconds to complete in WinDev but only 60 milliseconds in Java so I don't really now what I'm doing wrong:

dtStartDate = SysDateTime()
myCount is int = 0
mySize is int = 180000000
FOR i = 1 _TO_ mySize
myCount++
END
dtFinalDate = SysDateTime()
dDiferenciaCalculada = dtFinalDate - dtStartDate
UpdateDebugOutput("time: " + dDiferenciaCalculada..InMilliseconds + "; myCount: " + myCount)



I hope you can help to solve this problem.

Thank you very much.
Miembro registrado
33 mensajes
Popularité : +2 (2 votes)
Publicado el 31,mayo 2017 - 14:21
dtStartDate is DateTime = SysDateTime()
myCount is int = 0
mySize is int = 180000000
FOR i = 1 TO mySize
myCount++
END
dtFinalDate is DateTime = SysDateTime()
Info("time: " + DateTimeDifference(dtStartDate,dtFinalDate) + "; myCount: " + myCount)

Gives result in 8 seconds.

--
Regards,

Norman
Publicado el 08,junio 2017 - 15:45
If the code takes even more time in your computer than mine, what's the purpose of your answer? I'm saying exactly that, 'for' loop performance in WinDev is far from desired.

Anyway this topic is clear for me and can be closed. I was not able to overcome this lack of performance and I finally had to develop my utility in Java, WinDev cannot handle such amount of iterations.

Thank you.