PROFESSIONAL NEWSGROUPS
WINDEV
,
WEBDEV
and
WINDEV Mobile
Home
|
Recent messages
|
Connect
|
Sign out
|
English
Home
→
WINDEV 2024
→
WinDev application performance issues
WinDev application performance issues
Started by daniel, May, 23 2017 11:23 AM - 2 replies
Connect yourself…
daniel
#1
Posted on May, 23 2017 - 11:23 AM
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.
Report
0
0
Attlebax
#2
Registered member
33 messages
Popularité : +2 (2 votes)
Posted on May, 31 2017 - 2:21 PM
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
Report
0
0
daniel
#3
Posted on June, 08 2017 - 3:45 PM
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.
Report
0
0
→ Go back to WINDEV 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (earlier versions)
Français
English
Español
Portuguesa
Close this window
Search type
Only topics
All the messages
Search period
Any time
Past hour
Past 24 hours
Past week
Past month
Past year
Cancel
Preview of your message
Adding an image
Import an image from a URL
Send an image from a file of your disk
Drop a file or click "Browse..."
or
Cancel
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Text