Hi,
after upgrading from version 4.61 to 5.0 i noticed a small increase of the executable file. Now, after upgrade from PB 5.10 Beta 1 to Beta 2 i noticed another large increase of the executable file.
My current newsreader project sizes are:
compiled with 5.1 Beta 1 = 823,7 KB
compiled with 5.1 Beta 2 = 907,9 KB
It is an increase of over 10%!
Best regards,
Uwe
PB 5.10 Beta 1 and Beta 2 increase of executable file
PB 5.10 Beta 1 and Beta 2 increase of executable file
Last edited by uwekel on Sat Dec 29, 2012 2:26 pm, edited 1 time in total.
PB 5.70 LTS (x64) - Debian Testing, Gnome 3.30.2
Re: PB 5.10 Beta 2 version 1 and 2 increase of executable fi
That's wierd as the only changes are bug fixes on the canvas and IDE
Re: PB 5.10 Beta 2 version 1 and 2 increase of executable fi
Sorry, but i have to correct me: The differences are between Beta 1 and Beta 2.
PB 5.70 LTS (x64) - Debian Testing, Gnome 3.30.2
Re: PB 5.10 Beta 1 and Beta 2 increase of executable file
May be you use RegExp ? We added UTC support for PCRE, may be it includes some big tables for conversion.
Re: PB 5.10 Beta 1 and Beta 2 increase of executable file
You are right, Fred. The mentioned project uses Regex. I checked some of my other projects with the following result:
Projects/Programs with Regex:
1. PB 5.1 size 268,4 PB 5.2 size 351,4
2. PB 5.1 size 317,2 PB 5.2 size 413,2
3. PB 5.1 size 268,4 PB 5.2 size 351,4
4. PB 5.1 size 142,3 PB 5.2 size 225,4
The average increase is 88,5 KB or 36%.
Projects/Programs without Regex:
5. PB 5.1 size 90,9 PB 5.2 size 92,5
6. PB 5.1 size 65,5 PB 5.2 size 68,3
The average increase is just 2,2 KB or 3%.
All sources have not been changed between both compilations.
Projects/Programs with Regex:
1. PB 5.1 size 268,4 PB 5.2 size 351,4
2. PB 5.1 size 317,2 PB 5.2 size 413,2
3. PB 5.1 size 268,4 PB 5.2 size 351,4
4. PB 5.1 size 142,3 PB 5.2 size 225,4
The average increase is 88,5 KB or 36%.
Projects/Programs without Regex:
5. PB 5.1 size 90,9 PB 5.2 size 92,5
6. PB 5.1 size 65,5 PB 5.2 size 68,3
The average increase is just 2,2 KB or 3%.
All sources have not been changed between both compilations.
PB 5.70 LTS (x64) - Debian Testing, Gnome 3.30.2
Re: PB 5.10 Beta 1 and Beta 2 increase of executable file
Well, then I think this can't be avoided, or this bug won't be fixed: http://www.purebasic.fr/english/viewtop ... =4&t=52534
Re: PB 5.10 Beta 1 and Beta 2 increase of executable file
Just to let you know, after changing all Regex relevant code i could reduce every project up to 200KB of size 
Btw, most of the Regex stuff could be recoded very easy and now the performance is very much better.
Conclusion: Regex is convenient, but very slow...

Btw, most of the Regex stuff could be recoded very easy and now the performance is very much better.
Conclusion: Regex is convenient, but very slow...
PB 5.70 LTS (x64) - Debian Testing, Gnome 3.30.2
Re: PB 5.10 Beta 1 and Beta 2 increase of executable file
It all depends of what you do, regexp are here to help which complex searching schemes.