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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Generic Freelist Allocator for Go

10 点作者 Snawoot8 个月前

1 comment

nasretdinov8 个月前
I&#x27;ve used this idea to speed up AST parsing: <a href="https:&#x2F;&#x2F;github.com&#x2F;z7zmey&#x2F;php-parser&#x2F;issues&#x2F;21">https:&#x2F;&#x2F;github.com&#x2F;z7zmey&#x2F;php-parser&#x2F;issues&#x2F;21</a><p>By just reducing cost of doing allocations (but still allocating the same number of structs) on some of the hot paths it sped up making of the AST tree by 1.5x<p>If you can use this approach for the entire parser I imagine the gains would be much more significant
评论 #41546715 未加载