night-moon-studio / DynamicDictionary

基于BTFindTree项目的动态缓存构造库

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DynamicDictionary

基于BTFindTree项目的动态缓存构造库

使用方法(User Api):


  • 引入 动态构件库: NMS.DynamicDictionary

  • 初始化 Natasha : NatashaInitializer.InitializeAndPreheating();

var fastDict = dict.HashTree / PrecitionTree / FuzzyTree();
var result = fastDict["a"];
fastDict["a"] = "b";
fastDict["other"] = "b"; //ERROR dict 在生成时未带有 other 键

性能测试

benchmark


捐赠

About

基于BTFindTree项目的动态缓存构造库

License:MIT License


Languages

Language:C# 100.0%