Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^3: Camel vs. Gopher

by marioroy (Prior)
on Dec 13, 2018 at 01:37 UTC ( [id://1227194]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Camel vs. Gopher
in thread Camel vs. Gopher

The pipeline method batches multiple operations into a single IPC call. A smaller chunk_size value is needed to notice the difference.

# increment shared hash - single IPC per chunk $count->pipeline( map { [ 'incrby', $_ => $lcount{$_} ] } keys %lcount );

Comparison chunk_size => 1_000

Before 0.814 seconds $count->incrby(...) After 0.522 seconds $count->pipeline(...)

Regards, Mario

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (2)
As of 2024-04-19 19:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found