小编sab*_*ber的帖子

realloc调用会引入多少开销?

我realloc在循环的每次迭代中使用,迭代次数for超过10000次.

这是一个好习惯吗?realloc如果被调用很多次会导致错误吗?

c c++ memory memory-management realloc

8
推荐指数
2
解决办法
5444
查看次数

标签 统计

c ×1

c++ ×1

memory ×1

memory-management ×1

realloc ×1