logo       
Google Custom Search
    AddThis Social Bookmark Button

POE::Queue: msg#00011

Subject: POE::Queue
Hi.

I plan write POE::Queue::* in XS and have some questions.

1. Can I rely on assumption that $priority and $delta are UV (unsigned int)?
As I see POE uses timestamps as priority in queues.
Using "int" instead "double" can help to reach much better performance.

2. Is $payload always a ref to something?

3. Can filter change $payload on call?
If not, I think safe to use SV address of $payload as its $id.
Technically if payload may be contained in the one and only one queue - this greatly simplifies any queue's implementation. Of course by nature of SV this $id will be unique at any moment of time - however SV can be reused in the future.

Maybe these questions need to be explained in queue API (POE::Queue)?

--
Sergey Skvortsov
mailto: skv@xxxxxxxxx




Try Searching:
servers, voip, java, networking, microsoft ...
<Prev in Thread] Current Thread [Next in Thread>