Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

Re^10: Why should any one use/learn Perl 6?

by marioroy (Parson)
on Jun 13, 2018 at 23:29 UTC ( #1216599=note: print w/replies, xml ) Need Help??

in reply to Re^9: Why should any one use/learn Perl 6?
in thread Why should any one use/learn Perl 6?

Hello liz,

Under the hood (MCE::Shared::Server), the boilerplate is the same between OO and TIE for the most part. For Perl-like behavior, the TIE interface involves additional overhead from Perl itself.

MCE::Mutex is used internally for locking. There are 10 locks, one per data channel. A worker from MCE, MCE::Hobo, or threads is assigned a data-channel automatically in a round-robin fashion. 10 workers max can obtain an exclusive lock simultaneously. The unidirectional command-channel involves no locking.

Other parallel modules on MetaCPAN may benefit from multiple data channels simply by calling MCE::Shared::init() inside the worker.

Regards, Mario

  • Comment on Re^10: Why should any one use/learn Perl 6?

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1216599]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (3)
As of 2021-09-18 20:34 GMT
Find Nodes?
    Voting Booth?

    No recent polls found