Skip Menu |

This queue is for tickets about the POE CPAN distribution.

Report information
The Basics
Id: 20978
Status: resolved
Priority: 0/
Queue: POE

People
Owner: Nobody in particular
Requestors: michael.hartmann [...] as-netz.de
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.3202
Fixed in: (no value)



Subject: POE delays and Tk cause enormous use of CPU-time
When you use POE, at least two delays (e.g. for timers) and also Tk your perl-script ueses much too much CPU-time (on my machine - Athlon XP 2200+ with two 1-second-delays up to 100%). Without using Tk the script works just fine and uses about 0-1% CPU. An older version of poe (libpoe-perl of sarge, version 0.29) work just fine, so I'm using these very old versions to avoid the problem. For a short script that explains the problem see http://m19s28.vlinux.de/estel/debian/poe. When using strace you recognize that gettimeofdate() is called by POE several times. I guess that is quite normal as POE provides support for delays. However, without using Tk POE calls gettimeofdate() maybe about 10 times per second, but running the script and using Tk it is impossible to count. If you use longer intervalls for you delays the script uses less CPU, but still too much. I've also reported this bug to the responsible debian maintainer months ago (see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=345544), but no answer or solution up to now. Thank you for your help, Michael Hartmann
Thanks for a fine bug report and test case. A fix has been committed as revision 2084 (Robotron).