Allocation strategies for vector creation
未关闭
- 主要语言
- Haskell
- 星标
- 400
- 派生
- 145
- PR 合并指标
- 30 天内没有已合并 PR
描述
Currently we have following size hints in bundle:
```haskell
data Size = Exact Int -- ^ Exact size
| Max Int -- ^ Upper bound on the size
| Unknown -- ^ Unknown size
```
however buffer allocation for vector has only two strategies: doubling for unknown and exact allocation for both `Exact` and `Max`. I think we should have three: unbounded doubling, doubling with bound for Max, and preallocation for Exact
P.S. It was also proposed to add lower bound to [discussion](https://github.com/haskell/vector/issues/301#issuecomment-845587128)
贡献指南
这个仓库没有索引到贡献指南
评估
这个 Issue 还没有评估数据。