houbb / sensitive-word

👮‍♂️The sensitive word tool for java.(敏感词/违禁词/违法词/脏词。基于 DFA 算法实现的高性能 java 敏感词过滤工具框架。请勿发布涉及政治、广告、营销、翻墙、违反国家法律法规等内容。高性能敏感词检测过滤组件,附带繁体简体互换,支持全角半角互换,汉字转拼音,模糊搜索等功能。)
https://houbb.github.io/opensource/sensitive-word
Apache License 2.0
4.36k stars 589 forks source link

Spring托管SensitiveWordBs,使用自定义替换字符时,重复初始化效率问题 #36

Open boren07 opened 1 year ago

boren07 commented 1 year ago

问题描述:Spring托管SensitiveWordBs,使用自定义替换字符时,重复初始化效率问题。是否可以提供替换时传入策略的api

  1. 使用环境:spring
  2. 场景:需要在接口层支持自定义替换字符。
  3. 现状:必须在初始化SensitiveWordBs对象时指定替换策略,导致替换接口调用时会重复初始化。
houbb commented 1 year ago

可以考虑作为一个优化项,后续有时间我看下。

发自我的iPhone

------------------ 原始邮件 ------------------ 发件人: borened @.> 发送时间: 2023年10月16日 16:57 收件人: houbb/sensitive-word @.> 抄送: Subscribed @.***> 主题: Re: [houbb/sensitive-word] Spring托管SensitiveWordBs,使用自定义替换字符时,重复初始化效率问题 (Issue #36)

问题描述:Spring托管SensitiveWordBs,使用自定义替换字符时,重复初始化效率问题。是否可以提供替换时传入策略的api

使用环境:spring

场景:需要在接口层支持自定义替换字符。

现状:必须在初始化SensitiveWordBs对象时指定替换策略,导致替换接口调用时会重复初始化。

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***>