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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Changing Python's string search algorithms

1 点作者 lumpa大约 4 年前

1 comment

lumpa大约 4 年前
This is about speeding up some string searches in CPython, with an aim of avoiding pathological cases. One given example goes from over three hours (currently released CPython) to 0.1 seconds (proposed patch).<p>Here&#x27;s the bug report that lead to that discussion: &quot;bytes.find consistently hangs in a particular scenario&quot; -&gt; <a href="https:&#x2F;&#x2F;bugs.python.org&#x2F;issue41972" rel="nofollow">https:&#x2F;&#x2F;bugs.python.org&#x2F;issue41972</a>