Sujet : Re: Apache + mod_php performance
De : clubley (at) *nospam* remove_me.eisner.decus.org-Earth.UFP (Simon Clubley)
Groupes : comp.os.vmsDate : 02. Oct 2024, 18:44:48
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vdk0qf$3auiu$1@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
User-Agent : slrn/0.9.8.1 (VMS/Multinet)
On 2024-10-01, Arne Vajhøj <
arne@vajhoej.dk> wrote:
On 10/1/2024 8:46 PM, Lawrence D'Oliveiro wrote:
On Tue, 1 Oct 2024 19:46:53 -0400, Arne Vajhøj wrote:
But any time one need to do anything time consuming in the GUI then it
needs to be done in its own thread ...
Note that ?cpu-intensive? and ?time-consuming? are not synonymous.
Something can take a long time to complete, but not require much CPU time
during that time, so running it in the main thread would be fine and have
minimal impact.
>
But how do you keep the GUI responsive if the event/main loop
is doing something that is time consuming??
>
You can add events to the main GTK loop (such as an I/O channel becoming
ready) for GTK to listen on. Not sure if that is what Lawrence is thinking
of.
Simon.
-- Simon Clubley, clubley@remove_me.eisner.decus.org-Earth.UFPWalking destinations on a map are further away than they appear.