diff options
author | michael-grunder <michael.grunder@gmail.com> | 2018-05-20 10:44:19 -0700 |
---|---|---|
committer | michael-grunder <michael.grunder@gmail.com> | 2018-05-20 10:44:19 -0700 |
commit | 7bef042c0375cd5189b77abb879ca2e3a8c4d6d4 (patch) | |
tree | 5bba29b208dc734c6cb2bb1f2524bf70920f0f2b /async.c | |
parent | 109197585762986502d3a8fa628acc1b82b68cf3 (diff) |
Use string2ll from Redis
This commit pulls string2ll from Redis (with permission from Antirez)
as strtoll is 2-3x slower and even worse vs the original version in
hiredis that didn't check for overflow at all.
By using string2ll there is almost no measurable performance impact
of overflow detection even in integer parsing heavy workloads (e.g.
INCRBY commands).
Diffstat (limited to 'async.c')
0 files changed, 0 insertions, 0 deletions