摘要:
关键字过滤 实质:多模式文本匹配问题。 实现方式 编码格式统一为Unicode编码,统一编码差异。 hash存储关键字首字符,快速判定。 存储关键字首字符在vector中的范围下标,提高遍历检索效率。 支持中文规则。 最长匹配原则。 代码实现 https://github.com/TxtpGame/ 阅读全文
posted @ 2022-07-18 14:51
天下太平
阅读(81)
评论(0)
推荐(0)
摘要:
golang:https://github.com/oschwald/geoip2-golang 数据库:https://github.com/P3TERX/GeoLite.mmdb 获取http客户端的IP地址:https://blog.csdn.net/qq_35414442/article/d 阅读全文
posted @ 2022-07-18 14:40
天下太平
阅读(512)
评论(0)
推荐(0)

浙公网安备 33010602011771号