Tendis
Tendis copied to clipboard
优化压测时部分命令慢的问题,提升性能
Description
优化压测时部分命令慢的问题,提升性能
Motivation and Context
std::stringstream 字符串拼接效率较低,在高并发下存在性能问题. 改为 std::string 类型拼接,提升效率.
How Has This Been Tested?
压测及使用时未发现异常
Types of Changes
- [ ] Bug fix (non-breaking change that fixes an issue)
- [ ] New feature (non-breaking change that adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
Checklist:
- [x] Code follows the code style of this project.
- [ ] Change requires a change to the documentation.
- [ ] I have updated the documentation accordingly.