diff options
author | filipe oliveira <filipecosta.90@gmail.com> | 2023-02-06 16:26:40 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-06 18:26:40 +0200 |
commit | f3c6f9c2f44a7baf14de0f98b2b89c5c6c2781ba (patch) | |
tree | 4f216f9f177aeb53827680dcf5c7894fe04a1fc4 /tests | |
parent | 03347d04487daa5ee173f4d902351ee6a13618be (diff) | |
download | redis-f3c6f9c2f44a7baf14de0f98b2b89c5c6c2781ba.tar.gz |
Optimize ZRANGE replies WITHSCORES in case of integer scores (#11779)
If we have integer scores on the sorted set we're not using the fastest way
to reply by calling `d2string` which uses `double2ll` and `ll2string` when it can,
instead of `fpconv_dtoa`.
This results by some 50% performance improvement in certain cases of integer
scores for both RESP2 and RESP3, and no apparent impact on double scores.
Co-authored-by: Oran Agra <oran@redislabs.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/integration/rdb.tcl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/integration/rdb.tcl b/tests/integration/rdb.tcl index d4c6227fc..1479b500f 100644 --- a/tests/integration/rdb.tcl +++ b/tests/integration/rdb.tcl @@ -30,7 +30,7 @@ start_server [list overrides [list "dir" $server_path "dbfilename" "encodings.rd "0","set_zipped_2","set","100000","200000","300000","400000", "0","set_zipped_3","set","1000000000","2000000000","3000000000","4000000000","5000000000","6000000000", "0","string","string","Hello World" -"0","zset","zset","a","1","b","2","c","3","aa","10","bb","20","cc","30","aaa","100","bbb","200","ccc","300","aaaa","1000","cccc","123456789","bbbb","5e+9", +"0","zset","zset","a","1","b","2","c","3","aa","10","bb","20","cc","30","aaa","100","bbb","200","ccc","300","aaaa","1000","cccc","123456789","bbbb","5000000000", "0","zset_zipped","zset","a","1","b","2","c","3", } } |