PureBasic 6.03 LTS is released !

Developed or developing a new product in PureBasic? Tell the world about it.
User avatar
mk-soft
Always Here
Always Here
Posts: 6202
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: PureBasic 6.03 LTS beta 6 is ready to test !

Post by mk-soft »

marcoagpinto wrote: Sun Sep 10, 2023 10:59 am @Fred,

Sorry to sound bad, but the code generated (executable) has the same size as beta 5 and it has the same speed (if not slower).

Am I missing something?

Thanks!

EDIT: I am referring to the C backend, of course.
The c-code output has changed somewhat.
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
Quin
Addict
Addict
Posts: 1122
Joined: Thu Mar 31, 2022 7:03 pm
Location: Colorado, United States
Contact:

Re: PureBasic 6.03 LTS beta 6 is ready to test !

Post by Quin »

Thanks for all your work squashing those pesky bugs, Fred! :)
User avatar
marcoagpinto
Addict
Addict
Posts: 1039
Joined: Sun Mar 10, 2013 3:01 pm
Location: Portugal
Contact:

Re: PureBasic 6.03 LTS beta 6 is ready to test !

Post by marcoagpinto »

Buaaaaaaaaaaaaaaaa

Beta 6 is slower than beta 5, even with all the optimisations I have been doing in the source-code of my software.

Windows 11, C-backend, PureBasic x64.


:cry: :cry: :cry: :cry: :cry: :cry: :cry: :cry: :cry: :cry: :cry: :cry: :cry: :cry: :cry: :cry:
User avatar
Psychophanta
Always Here
Always Here
Posts: 5153
Joined: Wed Jun 11, 2003 9:33 pm
Location: Anare
Contact:

Re: PureBasic 6.03 LTS beta 6 is ready to test !

Post by Psychophanta »

@marcoagpinto
That's very scary :| :(
I hope it is solved.
http://www.zeitgeistmovie.com

while (world==business) world+=mafia;
User avatar
mk-soft
Always Here
Always Here
Posts: 6202
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: PureBasic 6.03 LTS beta 6 is ready to test !

Post by mk-soft »

Test this beta ide
Link: viewtopic.php?p=607026#p607026
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
Fred
Administrator
Administrator
Posts: 18153
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: PureBasic 6.03 LTS beta 6 is ready to test !

Post by Fred »

marcoagpinto wrote: Mon Sep 11, 2023 8:32 am Buaaaaaaaaaaaaaaaa

Beta 6 is slower than beta 5, even with all the optimisations I have been doing in the source-code of my software.

Windows 11, C-backend, PureBasic x64.


:cry: :cry: :cry: :cry: :cry: :cry: :cry: :cry: :cry: :cry: :cry: :cry: :cry: :cry: :cry: :cry:
We didn't changed anything with code generation between beta 5 and 6, if you can see where it is slower please post a bug report.
User avatar
marcoagpinto
Addict
Addict
Posts: 1039
Joined: Sun Mar 10, 2013 3:01 pm
Location: Portugal
Contact:

Re: PureBasic 6.03 LTS beta 6 is ready to test !

Post by marcoagpinto »

Fred wrote: Mon Sep 11, 2023 10:07 am
marcoagpinto wrote: Mon Sep 11, 2023 8:32 am Buaaaaaaaaaaaaaaaa

Beta 6 is slower than beta 5, even with all the optimisations I have been doing in the source-code of my software.

Windows 11, C-backend, PureBasic x64.


:cry: :cry: :cry: :cry: :cry: :cry: :cry: :cry: :cry: :cry: :cry: :cry: :cry: :cry: :cry: :cry:
We didn't changed anything with code generation between beta 5 and 6, if you can see where it is slower please post a bug report.
@Fred

I had made an optimisation of my PhD software in beta 5 that made 20 runs of it to take less 40 seconds.

Now, I compiled with beta 6, and it takes longer than with the change above, more 5 seconds in 20 runs.

I know 5 seconds doesn't sound much, but I have to generate data of many thousands of runs and 5 seconds more in each 20 runs produces a huge difference in all these runs.
Quin
Addict
Addict
Posts: 1122
Joined: Thu Mar 31, 2022 7:03 pm
Location: Colorado, United States
Contact:

Re: PureBasic 6.03 LTS beta 6 is ready to test !

Post by Quin »

Are you able to give a code sample?
marcoagpinto wrote: Mon Sep 11, 2023 11:20 am
Fred wrote: Mon Sep 11, 2023 10:07 am
marcoagpinto wrote: Mon Sep 11, 2023 8:32 am Buaaaaaaaaaaaaaaaa

Beta 6 is slower than beta 5, even with all the optimisations I have been doing in the source-code of my software.

Windows 11, C-backend, PureBasic x64.


:cry: :cry: :cry: :cry: :cry: :cry: :cry: :cry: :cry: :cry: :cry: :cry: :cry: :cry: :cry: :cry:
We didn't changed anything with code generation between beta 5 and 6, if you can see where it is slower please post a bug report.
@Fred

I had made an optimisation of my PhD software in beta 5 that made 20 runs of it to take less 40 seconds.

Now, I compiled with beta 6, and it takes longer than with the change above, more 5 seconds in 20 runs.

I know 5 seconds doesn't sound much, but I have to generate data of many thousands of runs and 5 seconds more in each 20 runs produces a huge difference in all these runs.
User avatar
marcoagpinto
Addict
Addict
Posts: 1039
Joined: Sun Mar 10, 2013 3:01 pm
Location: Portugal
Contact:

Re: PureBasic 6.03 LTS beta 6 is ready to test !

Post by marcoagpinto »

Quin wrote: Mon Sep 11, 2023 2:26 pm Are you able to give a code sample?
How? The source-code is around 340K (340 000) lines with endless calculations and equations, it is impossible for me to know where in it is the speed loss.
User avatar
Psychophanta
Always Here
Always Here
Posts: 5153
Joined: Wed Jun 11, 2003 9:33 pm
Location: Anare
Contact:

Re: PureBasic 6.03 LTS beta 6 is ready to test !

Post by Psychophanta »

@marco
if you want to demonstrate your experience, then you should put to work imagination to show the issue.
http://www.zeitgeistmovie.com

while (world==business) world+=mafia;
AZJIO
Addict
Addict
Posts: 2141
Joined: Sun May 14, 2017 1:48 am

Re: PureBasic 6.03 LTS beta 6 is ready to test !

Post by AZJIO »

marcoagpinto wrote: Mon Sep 11, 2023 5:36 pm How?

Code: Select all

StartTime = ElapsedMilliseconds()
Delay(1000) ; code under test
Debug ElapsedMilliseconds() - StartTime
Delay(1000) ; code under test
Debug ElapsedMilliseconds() - StartTime
Divide the code into blocks or divide it into 10 parts 340/10=34. After every 34000 lines, insert a time output line. Run on different versions to compare timestamps, which areas are running slower. Next, divide the slow section by 10, that is, insert a timestamp every 3.4K. And so we get to the desired function.
Fred
Administrator
Administrator
Posts: 18153
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: PureBasic 6.03 LTS beta 7 is ready to test !

Post by Fred »

Code: Select all

- Added #PB_String_NoCaseAscii support for CompareMemoryString() to have much faster string comparison when only ascii characters are involved
User avatar
jacdelad
Addict
Addict
Posts: 1991
Joined: Wed Feb 03, 2021 12:46 pm
Location: Riesa

Re: PureBasic 6.03 LTS beta 7 is ready to test !

Post by jacdelad »

Very nice, thanks!
Good morning, that's a nice tnetennba!

PureBasic 6.21/Windows 11 x64/Ryzen 7900X/32GB RAM/3TB SSD
Synology DS1821+/DX517, 130.9TB+50.8TB+2TB SSD
User avatar
marcoagpinto
Addict
Addict
Posts: 1039
Joined: Sun Mar 10, 2013 3:01 pm
Location: Portugal
Contact:

Re: PureBasic 6.03 LTS beta 7 is ready to test !

Post by marcoagpinto »

Thank you, Fred!

8) 8) 8) 8) 8) 8)
User avatar
skinkairewalker
Enthusiast
Enthusiast
Posts: 772
Joined: Fri Dec 04, 2015 9:26 pm

Re: PureBasic 6.03 LTS beta 7 is ready to test !

Post by skinkairewalker »

awesome, Fred !
thanks
Post Reply