Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^3: Camel vs. Gopher

by marioroy (Priest)
on Dec 12, 2018 at 20:37 UTC ( #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
Node Status?
node history
Node Type: note [id://1227194]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (4)
As of 2019-03-27 00:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How do you Carpe diem?





    Results (125 votes). Check out past polls.

    Notices?