TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Memory Allocation Benchmark

2 点作者 monort大约 6 年前

1 comment

rurban大约 6 年前
I always knew malloc&#x2F;free is much slower than a good GC.<p>In my testcase I need 4min on freeing libredwg datastructures with ordinary sized samples. free is insanely slow, malloc is just normally slow. A GC bump allocator is 0 cost, just like a stack alloca. But it is safe, unlike alloca (search the rust issues for stack overflow =&gt; 700 issues) or malloc&#x2F;free with manual management.
评论 #19875147 未加载