Does size matter !!!

For everything that's not in any way related to PureBasic. General chat etc...
swan
Enthusiast
Enthusiast
Posts: 225
Joined: Sat Jul 03, 2004 9:04 am
Location: Sydney Australia
Contact:

Does size matter !!!

Post by swan »

Recently I was asked if I was interested in completing a project that was about two thirds along, done in RealBasic (Xojo). Target was for Windows desktop, not too complex with remote DB. Not knowing too much about RealBasic I looked into it. I found the IDE nice but was surprised by it's resultant distribution overhead. So I did a little test and created the same Windows app on RealBasic, PureBasic and Delphi, then compared the exe. The app was a webgadget, button and stringgadget, type a URL into stringgadget, press button and URL is displayed in webgadget, very simple.
PureBasic: 48128 bytes
Delphi: 2464256 bytes
RealBasic: 4462592 bytes Then add necessary distribution overhead: 284572523 bytes total
Size of files these days isn't such a big deal as it once was nor am I bagging out any one platform but with such a difference in comparison - worth sharing.
User avatar
Janni
Enthusiast
Enthusiast
Posts: 127
Joined: Mon Feb 21, 2022 5:58 pm
Location: Norway

Re: Does size matter !!!

Post by Janni »

Thanks for sharing. I love to see it!

File size is a sign of strength in favour of PureBasic
Spec: Linux Mint 20.3 Cinnamon, i7-3770K, 16GB RAM, RTX 2070 Super
User avatar
Mijikai
Addict
Addict
Posts: 1360
Joined: Sun Sep 11, 2016 2:17 pm

Re: Does size matter !!!

Post by Mijikai »

Size, inline FASM and no dependencies where the main reasons i choose PureBasic.
User avatar
idle
Always Here
Always Here
Posts: 5042
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

Re: Does size matter !!!

Post by idle »

Thats quite a size difference. Fred is still debating about updating the c runtime because if he does the size of executables will rise above 19kb.
User avatar
Michael Vogel
Addict
Addict
Posts: 2666
Joined: Thu Feb 09, 2006 11:27 pm
Contact:

Re: Does size matter !!!

Post by Michael Vogel »

Has anyone made tests for the code size when using 32 bit / 64 bit standard/C-backend compiler?

I was wondering that the 32 bit C-backend results are larger than expected and within the exe I can see some sections (debug_a, debug_l, etc.) and tables (nt_store, fp_move, fp_load, fp_store, mmx_move, mmx_load, fadd, fmul, div, fabs, fchs,...) which are not present in the 64 bit executables. [Windows, PB6.00 64bit]
User avatar
the.weavster
Addict
Addict
Posts: 1537
Joined: Thu Jul 03, 2003 6:53 pm
Location: England

Re: Does size matter !!!

Post by the.weavster »

It's been a long time since I used RealBasic [Xojo] but iirc there was a checkbox you could use to specify whether you wanted the platform web renderer or alternatively include webkit with your app. Including webkit increased the size quite a bit.

Imo at this moment PB's WebGadget relying on IE makes it nonviable for this kind of app anyway.
Post Reply