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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Can golang beat perl on regex performance?

8 点作者 jagadishg超过 9 年前

1 comment

tumdum_超过 9 年前
First of all, this is really comparison of regexp packages. PCRE (am I correct that it&#x27;s used in perl?) written in C vs re2 written in Go.<p>On related topic, in this case utf8 is not needed so switching to []byte oriented api is good idea (and as an added benefit - slices are cheaper to copy then strings) - see comparison <a href="https:&#x2F;&#x2F;gist.github.com&#x2F;tumdum&#x2F;83581aee2693a60f5133" rel="nofollow">https:&#x2F;&#x2F;gist.github.com&#x2F;tumdum&#x2F;83581aee2693a60f5133</a>
评论 #10972184 未加载