[Gambas-user] what determines an application's resource useage

M0E Lnx m0e.lnx at ...626...
Thu Apr 24 22:21:11 CEST 2008


Thanks for the clarification
:)

On Thu, Apr 24, 2008 at 3:14 PM, Benoit Minisini
<gambas at ...1...> wrote:
> On jeudi 24 avril 2008, M0E Lnx wrote:
> > This question has been going around in my head for quite a while and
> > I'd like to get an answer.
> >
> > How can I make sure that my application doesn't consume too much of
> > the system resources?
> > It is my understanding (correct me if I'm wrong) that if I assign a
> > variable in an application, the system will allocate a certain ammount
> > of RAM to that one variable (Ammount depends on the type of variable
> > that is declared)
>
> No, assigning a variable does not use memory at all.
>
> Memory is allocated when:
>
> - A class is loaded.
>
> - A new object is created.
>
> The variables in the stack are allocated at startup.
>
> And of course, the libraries used by Gambas allocates memory on their own.
>
> Regards,
>
> --
> Benoit Minisini
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
> Don't miss this year's exciting event. There's still time to save $100.
> Use priority code J8TL2D2.
> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>




More information about the User mailing list