MCE::Ch...pleFast(3)
π MCE::Channel::SimpleFast β the manual, but make it cute π
okay bestie, gather round, because we're reading the docs for MCE::Channel::SimpleFast, which lives in the Perl user-contributed docs section. no cap, this one's a lil speed demon. β¨
β¨ NAME β¨
MCE::Channel::SimpleFast β a fast channel tuned for one producer and one consumer. it's giving dedicated lane energy. π£οΈπ
πΈ VERSION πΈ
this doc describes MCE::Channel::SimpleFast version 1.902. yes queen, version 1.902, write it down. π
π¦ DESCRIPTION π¦
so basically: this is a channel class that does queue-like and two-way communication for one process or thread on either end. and the best part? no locking needed. ππ
it's similar to MCE::Channel::Simple but optimized for non-Unicode strings only. the main difference is that this module lacks freeze-thaw serialization. so non-string arguments just become stringified β i.e. numbers and undef. it's not deep, it's just vibes. π
the API is described in MCE::Channel, with the sole difference being that send and send2 handle one argument. that's it, that's the tea. β
also, current module available since MCE 1.877. lowkey iconic, highkey useful.
π new
use MCE::Channel;
my $chnl = MCE::Channel->new( impl => 'SimpleFast' );
look at her. constructing a whole channel with impl => 'SimpleFast'. main character energy, fr fr. β¨
π QUEUE-LIKE BEHAVIOR π
these are the queue-y ones, bestie:
enqueuedequeuedequeue_nbend
π«Ά TWO-WAY IPC β PRODUCER TO CONSUMER π«Ά
the producer slides into the consumer's DMs:
sendrecvrecv_nb
π TWO-WAY IPC β CONSUMER TO PRODUCER π
and the consumer replies, because communication is a two-way street, periodt:
send2recv2recv2_nb
β AUTHOR β
Mario E. Roy, <marioeroy AT gmail DOT com> β give it up for the author, we stan. ππ
π the cute sign-off π
this page came to you from perl v5.42.0, dated 2025-09-10, and it's filed under MCE::Ch...pleFast(3). that's the whole vibe check, bestie β go build something with one producer, one consumer, and zero locking. slay. π
β¨π
π¦ where this page comes from
- fedora 43: perl-MCE 1.902-1.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