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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Bloom Filter (Python recipe)

46 点作者 jcsalterego将近 14 年前

1 comment

haberman将近 14 年前
One thing that takes a minute to sink with Bloom Filters is that the size requirements are independent of the size of the individual elements! Storing N elements with a given false positive probability has a fixed cost, whether you're storing integers or 100MB strings.<p>If you are concerned with speed, a bloom filter is exactly the kind of thing I'd never implement in Python. Twiddling bits is orders of magnitude more expensive than in C.
评论 #2618340 未加载