Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2006-07

Small Apps thing of the Past?

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Jason P Sage

In response to the text below - I thought it useful to say that I have the need for a small APP to make a super thin CGI app to compromise between the "process startup" of CGI apps without locking myself into a HTTP API or FastCGI - Still not sure what the benchmarks will reveal but concerning FPC, By not using any units that appear to use classes internally (because of the CLASSES bloat code which is fine usually and desired) I have managed 30k exe's (upx even smaller) using only the DOS unit, and my own. I use ONLY FPC native objfpc mode - AND I made a skeleton of a little database format - using the file block stuff - and it SCREAMS!!!!

So - small apps - I personally need to ability to count bytes sometimes depending on the application - and FPC has been handling BIG and SMALL - FAST never SLOW - for me in years!

I personally use only my own homemade classes - unless absolutely necessary to use others.. only so I know intimately what each part of my system is doing down to the frame bolts.... so all in all... I think the statement below is not wrong but not entirely correct either.

Jason P Sage

Show quoted text 9 lines
> Many small things (and some larger, like OpenOffice.org) together > make for large sizes. I haven't seen small things made in recent years, and previously small things have grown big. gcc isn't exactly small, neither is glibc or KDE or Gnome or Eclipse or Mozilla or Evolution or Samba, or X or anything that the user sees. And nearly any of them are not run by volunteers anymore either. Nearly all

have

Show quoted text 5 lines
fulltimers. The only stuff that is small are the remnants of the said eighties unix culture. Tail,wc and friends. The newer branches of that family (perl, python etc) are all again huge.

Reply by email

Marco van de Voort
to Jason P Sage
Show quoted text 9 lines
In response to the text below - I thought it useful to say that I have the need for a small APP to make a super thin CGI app to compromise between the "process startup" of CGI apps without locking myself into a HTTP API or FastCGI - Still not sure what the benchmarks will reveal but concerning FPC, By not using any units that appear to use classes internally (because of the CLASSES bloat code which is fine usually and desired) I have managed 30k exe's (upx even smaller) using only the DOS unit, and my own. I use ONLY FPC native objfpc mode - AND I made a skeleton of a little database format - using the file block stuff - and it SCREAMS!!!!

Very nice. What is the % startup difference between using classes and not? And how do you measure ? I can't imagine it to be larger than the performance penalty on UPX.

See also:

http://www.freepascal.org/wiki/index.php/Size_Matters

most notably the parts about UPX.

Reply by email