It is currently Tue May 21, 2013 10:48 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: PB 5.10 Beta 1 and Beta 2 increase of executable file
PostPosted: Sat Dec 29, 2012 10:58 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sat Dec 03, 2011 5:54 pm
Posts: 252
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

_________________
Purebasic 5.11 | Fedora 18 (32-bit)


Last edited by uwekel on Sat Dec 29, 2012 2:26 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: PB 5.10 Beta 2 version 1 and 2 increase of executable fi
PostPosted: Sat Dec 29, 2012 11:03 am 
Offline
Administrator
Administrator

Joined: Fri May 17, 2002 4:39 pm
Posts: 8868
Location: France
That's wierd as the only changes are bug fixes on the canvas and IDE


Top
 Profile  
 
 Post subject: Re: PB 5.10 Beta 2 version 1 and 2 increase of executable fi
PostPosted: Sat Dec 29, 2012 2:25 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sat Dec 03, 2011 5:54 pm
Posts: 252
Sorry, but i have to correct me: The differences are between Beta 1 and Beta 2.

_________________
Purebasic 5.11 | Fedora 18 (32-bit)


Top
 Profile  
 
 Post subject: Re: PB 5.10 Beta 1 and Beta 2 increase of executable file
PostPosted: Sat Dec 29, 2012 2:35 pm 
Offline
Administrator
Administrator

Joined: Fri May 17, 2002 4:39 pm
Posts: 8868
Location: France
May be you use RegExp ? We added UTC support for PCRE, may be it includes some big tables for conversion.


Top
 Profile  
 
 Post subject: Re: PB 5.10 Beta 1 and Beta 2 increase of executable file
PostPosted: Sun Dec 30, 2012 9:32 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sat Dec 03, 2011 5:54 pm
Posts: 252
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.

_________________
Purebasic 5.11 | Fedora 18 (32-bit)


Top
 Profile  
 
 Post subject: Re: PB 5.10 Beta 1 and Beta 2 increase of executable file
PostPosted: Sun Dec 30, 2012 11:54 am 
Offline
Administrator
Administrator

Joined: Fri May 17, 2002 4:39 pm
Posts: 8868
Location: France
Well, then I think this can't be avoided, or this bug won't be fixed: viewtopic.php?f=4&t=52534


Top
 Profile  
 
 Post subject: Re: PB 5.10 Beta 1 and Beta 2 increase of executable file
PostPosted: Sat Jan 12, 2013 9:27 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sat Dec 03, 2011 5:54 pm
Posts: 252
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...

_________________
Purebasic 5.11 | Fedora 18 (32-bit)


Top
 Profile  
 
 Post subject: Re: PB 5.10 Beta 1 and Beta 2 increase of executable file
PostPosted: Sat Jan 12, 2013 11:47 am 
Offline
Administrator
Administrator

Joined: Fri May 17, 2002 4:39 pm
Posts: 8868
Location: France
It all depends of what you do, regexp are here to help which complex searching schemes.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye