Page 1 of 1

PB 5.10 Beta 1 and Beta 2 increase of executable file

Posted: Sat Dec 29, 2012 10:58 am
by uwekel
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

Re: PB 5.10 Beta 2 version 1 and 2 increase of executable fi

Posted: Sat Dec 29, 2012 11:03 am
by Fred
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

Posted: Sat Dec 29, 2012 2:25 pm
by uwekel
Sorry, but i have to correct me: The differences are between Beta 1 and Beta 2.

Re: PB 5.10 Beta 1 and Beta 2 increase of executable file

Posted: Sat Dec 29, 2012 2:35 pm
by Fred
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

Posted: Sun Dec 30, 2012 9:32 am
by uwekel
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.

Re: PB 5.10 Beta 1 and Beta 2 increase of executable file

Posted: Sun Dec 30, 2012 11:54 am
by Fred
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

Posted: Sat Jan 12, 2013 9:27 am
by uwekel
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...

Re: PB 5.10 Beta 1 and Beta 2 increase of executable file

Posted: Sat Jan 12, 2013 11:47 am
by Fred
It all depends of what you do, regexp are here to help which complex searching schemes.