Closed pgeraghty closed 4 years ago
Thanks for this! I am on vacation and will take a closer look at your PR when I am back.
Thanks, Stefan. Forgot to add that I have produced some numbers for this, which you can see under my original Sidekiq.cr pull request.
Merged, thanks!
:thumbsup:
I noticed whilst using MONITOR during queuing of Sidekiq jobs (via Sidekiq.cr) that there are many round trips for MULTI and I went to look at the Ruby client, which appears to pipeline the transaction.
The code may be a bit rough (?) and probably not idiomatic to Crystal, but all tests still pass and the performance increase for me on the following benchmark w/ local Redis is ~750ms -> ~350ms.