ffuzzy 0.1.0
ffuzzy: ^0.1.0 copied to clipboard
高性能模糊搜索:基于 nucleo (Rust) + flutter_rust_bridge,支持对象/字符串搜索、命中高亮、同步/异步,十万级数据比常见纯 Dart 库快 45–300 倍。
0.1.0 #
首个版本。
- 基于
nucleo-matcher(Rust)+flutter_rust_bridge的高性能模糊搜索。 FuzzyMatcher<T>(对象搜索)/FuzzyStringMatcher(字符串搜索),返回命中 + 分数 + 高亮下标。- 同步
match与异步matchAsync(后台线程,不阻塞 UI)。 - 可控索引:
buildIndices/freeIndices,以及add/addAll/update/removeAt/removeWhere/clear/refresh增量维护。 single/singleAsync取最佳一条;fuzzyMatch/fuzzyMatchIndices/fuzzyFilter/fuzzyFilterAsync独立函数。- 可配置忽略大小写、Unicode 归一化、前缀优先(已规避 nucleo issue #92)。
- 支持 Android / iOS / macOS / Windows / Linux 原生交叉编译。