支持自定义 IOBuf Block size
Open
- Dominant language
- C++
- Stars
- 17.6k
- Forks
- 4.1k
- Avg merge
- 2d 12h
- Merged PRs (30d)
- 69
Description
**Is your feature request related to a problem? (你需要的功能是否与某个问题有关?)**
Block size 现在是一个常量,如果支持动态修改的话会出现什么问题吗?使用场景是在我们的rpc里有一些是大块的5mb数据最好需要连续地址,其他rpc则是很小的。不应该公用一个blocksize。
**Describe the solution you'd like (描述你期望的解决方法)**
支持iobuf初始化提供一个自定义blocksize,如果可以的话我会提一个pr
**Describe alternatives you've considered (描述你想到的折衷方案)**
**Additional context/screenshots (更多上下文/截图)**
Contributor guide
Research direction
Start by locating the IOBuf block-size constant and its initialization path. Assess how a caller could provide a custom block size for different RPC payloads, then verify the behavior for both small messages and large messages requiring contiguous storage.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- backend-api-design
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100