Re: Performance: php-gtk vs java
| From: | Malk0 | Date: | Mon, 17 Jan 2005 00:59:54 +0000 |
| Subject: | Re: Performance: php-gtk vs java | ||
| References: | 1 2 3 4 5 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-5482@lists.php.net to get a copy of this message | ||
in php4 objects are not destroyed until the end of the script, that's
not a problem on a web apps where scipts doesn't live more than 60 sec
generally, it becomes one when you deal with hundred or thousand
objects, so if your apps have a finished number class instantiation
you normally won't have to care of this, but if you open multiples
windows with a lot of widgets you won't see all your memory back when
you'll destroy them.
This is true for php4 and as far as i know won't remain in php5 but
haven't test it yet.
regards,
nathan
On Mon, 17 Jan 2005 08:49:57 +0800, Alan Knowles <alan@akbkhome.com> wrote:
> There are a few places where it's likely resources are not being free'd
> correctly
> eg. (of the top of my head and guessing)
> create a button -> attach a signal, -> remove the button.
> the associated callback is not de-referenced AFAIR, so you end up with a
> memory leak.
>
> Normally these are not too bad, most of the major stuff is free'd, it's
> some of the little things that are difficult to work out a strategy on.
>
> Regards
> Alan
>
> Jeremy Johnstone wrote:
>
> >To my knowledge, this has nothing to do with PHP-GTK specifically. I
> >have written a large app in PHP-GTK which I have left running for over
> >a week and memory usage stayed roughly the same. Either your using
> >some code or some extension which is leaking memory and/or not
> >properly freeing up resources when they are done being used.
> >
> >-Jeremy
> >
> >
> >
> >On Fri, 14 Jan 2005 17:01:52 +1000, Tom Rogers <trogers@kwikin.com> wrote:
> >
> >
> >>Actually it does use a lot of ram and never lets go until shutdown or crash.
> >>This is probably due to the way php was designed for web use where program life
> >>is not very long. I have made my own PHP ide using php-gtk and its only bug is
> >>it will crash after running for a day or so (depending on files used etc).
> >>
> >>This is under ms windows so maybe unix does not have the same problem.
> >>
> >>--
> >>regards,
> >>Tom
> >>
> >>--
> >>PHP-GTK General Mailing List (http://gtk.php.net/)
> >>To unsubscribe, visit: http://www.php.net/unsub.php
> >>
> >>
> >>
> >>
> >
> >
> >
> >
>
> --
> PHP-GTK General Mailing List (http://gtk.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
-- Malk0 --
venez discuter php-gtk en francais ici http://mk0phpgtk.xgarreau.org