Ryan Chan wrote:
Hi ALL,

On Thu, Mar 4, 2010 at 4:22 AM, p...@0ne.us <p...@0ne.us> wrote:

profiling. Also, there are numerous Loop adapters ( POE::Loop::IO_Poll,
POE::XS::Loop::EPoll, etc ) that could take advantage of your platform or
workload to reduce the overhead. As always, benchmark/test your code against
the various loops to see if one of them is best for your workload. As taken
from the POE::Kernel pod: "By default POE uses its select() based loop to
drive its event system. This is perhaps the least efficient loop, but it is
also the most portable. POE optimizes for correctness above all."

Thanks for your reply.

I need to clean up my code first so I will upload later (together with
the profile report).

In the meantime, since I am only with Linux, how can I tell POE to use EPOLL?

Thanks.
Hello,

To use a specific event loop you should read this section of the POE::Kernel POD -> http://search.cpan.org/~rcaputo/POE-1.287/lib/POE/Kernel.pm#Using_POE_with_Other_Event_Loops

To use EPoll, just use your favorite CPAN client to install it then tell POE to load it via one of the mechanisms listed above. Also, please read the POE::XS::Loop::EPoll POD for more information :)

~Apocalypse

Reply via email to