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:

  • enqueue
  • dequeue
  • dequeue_nb
  • end

🫢 TWO-WAY IPC β€” PRODUCER TO CONSUMER 🫢

the producer slides into the consumer's DMs:

  • send
  • recv
  • recv_nb

πŸ’œ TWO-WAY IPC β€” CONSUMER TO PRODUCER πŸ’œ

and the consumer replies, because communication is a two-way street, periodt:

  • send2
  • recv2
  • recv2_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