Re: Most time spent on POE/Loop/Select.pm?

[email protected] (Andrew Feren) Wed, 03 Mar 2010 21:59:31 -0500
Newsgroups perl.poe
Message-ID <[email protected]>
On 03/03/2010 03:22 PM, [email protected] wrote:
> Tip: The POE developers have spent years optimizing POE the best they
> can. You can safely ignore the core POE modules from your profiling (
> POE::Loop::Select, POE::Kernel, etc ) and focus on your own code when
> profiling.

I both agree and disagree with this.  POE's core modules do, in my
experience, perform very well and I always start out assuming that they
are not the performance problem.  This does not mean you should ignore
the usage you see in these modules.

High usage in the core modules might indicate an issue in your
application.  Events are expensive.  Maybe some events could be bundled
into a single pass through POE rather than several.  Maybe you are
firing events that could just as easily be function calls.

That said, based on the minimal information given in the original post,
I think Apocalypse probably correct about what you are seeing in this
particular case.

-Andrew