Don't ask to ask, just ask | |
PerlMonks |
Re: Re: Efficient non-blocking UDP serverby liz (Monsignor) |
on Mar 20, 2004 at 21:25 UTC ( [id://338368]=note: print w/replies, xml ) | Need Help?? |
I would be surprised if Thread::Queue would have the performance needed for handling hundreds of UDP packets.
If you realise that a shared array (to which Thread::Queue is a very simple frontend) stores its valus both in the current thread as well as in the hidden background thread. Not very performance friendly. If you want to try Thread::Queue for this application, make sure that you have Perl 5.8.1 or higher, as 5.8.0 has a severe memory leak with shared arrays. Liz
In Section
Seekers of Perl Wisdom
|
|