Commit 4e9f32e
committed
refactor(resp): 优化RESP对象创建逻辑
- 修改newInstance方法参数从byte类型改为ByteBuffer类型
- 在解析SimpleStrings时增加对"OK"字符串的快速返回处理
- 重构SimpleStrings类,增加OK_RESP静态实例用于快速匹配
- 调整Redisun类中对SimpleStrings.OK的判断逻辑
- 更新Arrays和Maps类中元素创建方式
- 优化RedisMessageProcessor中RESP实例创建流程1 parent 623e468 commit 4e9f32e
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
395 | 395 | | |
396 | 396 | | |
397 | 397 | | |
398 | | - | |
| 398 | + | |
399 | 399 | | |
400 | 400 | | |
401 | 401 | | |
| |||
0 commit comments