<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>8 Jun 2017 15:45:10 Z</lastBuildDate><pubDate>23 May 2017 11:23:50 Z</pubDate><description>Hello all,&#13;
&#13;
I am having performance issues with a simple WinDev application and I cannot figure out how to solve them.&#13;
&#13;
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.&#13;
&#13;
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):&#13;
WinDev project: https://www.dropbox.com/s/3vm0yrfcb3wc46r/TestProject.zip?dl=0&#13;
Java project (Eclipse): https://www.dropbox.com/s/j896r3pl5kh2iit/playground_java.zip?dl=0&#13;
&#13;
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.&#13;
&#13;
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:&#13;
&#13;
[code:wl]&#13;
dtStartDate = SysDateTime()&#13;
myCount is int = 0&#13;
mySize is int = 180000000&#13;
FOR i = 1 _TO_ mySize&#13;
	myCount++&#13;
END&#13;
dtFinalDate = SysDateTime()&#13;
dDiferenciaCalculada = dtFinalDate - dtStartDate&#13;
UpdateDebugOutput("time: " + dDiferenciaCalculada..InMilliseconds + "; myCount: " + myCount)&#13;
[/code]&#13;
&#13;
&#13;
I hope you can help to solve this problem.&#13;
&#13;
Thank you very much.</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/60974-windev-application-performance-issues/read.awp</link><title>WinDev application performance issues</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster><item><author>d.hernaez</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/60974-windev-application-performance-issues-61208/read.awp</comments><pubDate>8 Jun 2017 15:45:10 Z</pubDate><description>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' l…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/60974-windev-application-performance-issues-61208/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/60974-windev-application-performance-issues-61208/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/60974-windev-application-performance-issues/read.awp">WinDev application performance issues</source><title>Re: WinDev application performance issues</title></item><item><author>Attlebax</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/60974-windev-application-performance-issues-61059/read.awp</comments><pubDate>31 May 2017 14:21:05 Z</pubDate><description>dtStartDate is DateTime = SysDateTime()&#13;
myCount is int = 0&#13;
mySize is int = 180000000&#13;
FOR i = 1 TO mySize&#13;
	myCount++&#13;
END&#13;
dt…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/60974-windev-application-performance-issues-61059/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/60974-windev-application-performance-issues-61059/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/60974-windev-application-performance-issues/read.awp">WinDev application performance issues</source><title>Re: WinDev application performance issues</title></item></channel></rss>
