Array(3)
π Array(3) β POE::XS::Queue::Array π
okay so bestie, welcome to the manual page for POE::XS::Queue::Array β it's from the User Contributed Perl Documentation, and it's basically the glow-up era of a queue. let's get into it π
β¨ NAME β¨
POE::XS::Queue::Array β it's an XS implementation of POE::Queue::Array. that's the whole vibe. π
π¦ SYNOPSIS π¦
see POE::Queue. like. that's it. go look at the parent, she's serving the details.
See POE::Queue.
πΈ DESCRIPTION πΈ
so this class is one specific implementation of the abstract POE::Queue interface. it does a priority queue written in C, with an XS interface bolted on so Perl can talk to it. very demure, very mindful, very compiled. β¨
ngl, the current implementation could use some optimization, especially for large queues. like she's gorgeous but she's not running a marathon yet, yk?
please go read the POE::Queue documentation, because that's where the functions, features, and behavior of this one are actually explained. this page is not the main character for that part.
here's the tea tho β the following extra methods are added on top of everything POE::Queue::Array already gives you:
dumpβ dumps the internal structure of the queue tostderr. just vibes, just spilling her guts. πverifyβ does a limited verification of the structure of the queue. and bestie, if the verification fails then a message gets sent tostderr, and the queue gets dumped exactly like thedump()method does, and your program will exit. so yeah, it's giving final boss. no survivors. π
π SEE ALSO π
go read these, they're the besties:
POEPOE::QueuePOE::Queue::Array
π BUGS π
None known. periodt. she's clean. β¨
some possible improvements include:
- use a B-Tree for the queue β and yes, not a binary tree, a B-Tree, the distinction matters, iykyk β though this would require a module rename.
- use a custom hash instead of a
HVfor the id-to-priority mapping β either glib's hash, or convert to C++ and use the STLmap. - some of the XS code could be optimized to do less work in scalar context β
pq_remove_itemsandpq_peek_itemscould avoid building all those array refs.
π LICENSE π
POE::XS::Queue::Array is licensed under the same terms as Perl itself. so, iconic behavior, no notes. π
π«Ά AUTHOR π«Ά
Tony Cook <tonyc@cpan.org> β thank you king, we love you, we're obsessed. π
okay that's the whole page!! this came from perl v5.42.0 dated 2025-07-25 and it lives in section Array(3) β mwah, take care of her, byeee πβ¨
π¦ where this page comes from
- fedora 43: perl-POE-XS-Queue-Array 0.006-36.fc43 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms