forked from valkey-io/valkey
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move prepareClientToWrite out of loop for HGETALL command
Similar to valkey-io#860 but this is for HGETALL families (HGETALL/HKEYS/HVALS). This patch moves `prepareClientToWrite` out of the loop to reduce the function overhead. | test | unstable(150c197) rpc | this patch (rpc) | improvements | | ------------- | -------------------------- | ---------------- | ------------ | | HGETALL h1 | 85084.66 | 86926.29 | 2.16446772 | | HGETALL h10 | 78400.62 | 76893.5 | -1.922331737 | | HGETALL h25 | 64487.01 | 58802.77 | -8.814550403 | | HGETALL h50 | 47587.32 | 49360.78 | 3.726749058 | | HGETALL h100 | 33028.37 | 34454.25 | 4.317137055 | | HGETALL h300 | 14628.22 | 15540.98 | 6.239720212 | | HGETALL h500 | 9593.52 | 10395.44 | 8.358975642 | Signed-off-by: Masahiro Ide <[email protected]>
- Loading branch information
Showing
3 changed files
with
47 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters