Re: POE & Tk excessive CPU usage?

Craig Votava <[email protected]> Mon, 11 Jun 2007 13:05:42 -0500
Newsgroups gmane.comp.lang.perl.tk
Message-ID <[email protected]>
Ala, Folks-

The POE::Loop::Tk module is what the provided
example program ends up using (it's not obvious
when looking at the code). In POE, the rules are
that if you "use Tk" before you "use POE", then
POE will automagically provide you with Tk-ish
things like POE::Loop::Tk.

The problem I'm seeing here is that it uses up
way too much CPU when it's doing nothing. I suspect
this has something to do with event loop sharing
between the Tk event loop and the POE event loop.

The POE author (Rocco Caputo) has verified this
problem, but was unable to fix it by diddling for
an hour or so. He asked me to create a bug report,
and he'll get around to it when he has more time.

I was hoping someone here, who knows the guts of
the Tk event loop might be able to shed some light
on the problem.

Also, any validation and/or statistics on what
happens when the example program is run, would
be valuable input.

Thanks

-Craig

On Jun 11, 2007, at 10:38 AM, Ala Qumsieh wrote:

>
> --- Craig Votava <[email protected]> wrote:
>
>> Folks-
>>
>> I was wondering if anybody in ptk-land could
>> help out with this problem. I've posted it
>> to the POE mailing list, and got corroboration,
>> but nobody knows what the problem is or how
>> to fix it.
>
> Never used POE, but browsing CPAN, I see there is a
> POE::Loop::Tk module. Maybe that would help somehow?

--++**==--++**==--++**==--++**==--++**==--++**==--++**==
ptk mailing list
[email protected]
https://mailman.stanford.edu/mailman/listinfo/ptk