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
In reply to Re^3: Camel vs. Gopher
by marioroy
in thread Camel vs. Gopher
by reisinge
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |