On 10/15/06, Nataraj S Narayan <[EMAIL PROTECTED]> wrote:
I did as told. Now the size has come down from 14M to 2.7M.  But still
isnt it on the higher side for a single form program, with 5 SQLQuery
components and about 50 lines of code?

This is a big FAQ, that I will answer here:


I created an image to illustrate this:

http://wiki.lazarus.freepascal.org/images/d/de/Lazarus_vs_cpp.png

What happens is that the hello world lazarus software already includes
a huge amount of features. It includes:

* XML handling library
* Image handling library for png, xpm, bmp and ico files
* Almost all widgets from the Lazarus Component Library
* All of the Free Pascal Runtime Library

So it's very big, but it already includes almost everything a
realworld non-trivial app will need.

The key thing is that because of the Free Pascal compiler and the way
lazarus forms operate, the software will increase in size very slowly
when you add extra forms, and add code to it.

So in fact, Lazarus produces horrible hello worlds, but in a real
world app it's size very quickly becomes much smaller then a
comparable project in c++ for example.

Lazarus executable size starts big, bug grows very slowly. My lazarus
ide executable has 8 MB, and it has millions of lines of code, and
hundreds of forms.

A c++ project (just an example, but applies to other languages / tools
too) starts very small on the hello world, but quickly grows
exponencially when you need features to write a non-trivial
application.


BTW, does the size affect the performance in anyway?

Unless you have so little memory that your program must stay on swap,
I don't think so.

--
Felipe Monteiro de Carvalho

_________________________________________________________________
    To unsubscribe: mail [EMAIL PROTECTED] with
               "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to