FOROS PROFESIONALES
WINDEV
,
WEBDEV
y
WINDEV Mobile
Inicio
|
Mensajes recientes
|
Conéctese...
|
Desconectar
|
Español
Inicio
→
WINDEV 2024
→
WinDev application performance issues
WinDev application performance issues
Iniciado por daniel, 23,may. 2017 11:23 - 2 respuestas
Conéctese…
daniel
#1
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
(
)
d
DiferenciaCalculada
=
dtFinalDate
-
dtStartDate
UpdateDebugOutput
(
"time: "
+
d
DiferenciaCalculada
..
InMilliseconds
+
"; myCount: "
+
myCount
)
I hope you can help to solve this problem.
Thank you very much.
Informar
0
0
Attlebax
#2
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
Informar
0
0
daniel
#3
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.
Informar
0
0
→ Volver a WINDEV 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (versiones precedentes)
Français
English
Español
Portuguesa
Fermer cette fenêtre
Búsqueda Tipo
Sólo temas
Todos los mensajes
Periodo Buscar
Cualquier fecha
Última hora
Última 24 horas
Última semana
Último mes
Último año
Cancelar
Vista previa del mensaje
Añadiendo una imagen
Importar una imagen desde una URL
Enviar una imagen desde un archivo de su disco
Arrastrar un archivo o click en "Examinar..."
o
Cancelar
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Texto