-
Notifications
You must be signed in to change notification settings - Fork 216
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Natasha 预热优化 #69
Comments
|
空引用已修复,参见新版. |
今日我们使用了最新语法树格式化函数, 它为 Natasha 减少了 520ms 的耗时, 减少了近 15M 的内存占用. |
截至目前, 性能优化结果: 预热需要 1400ms 左右, 编译一次需要 380ms 左右(其中无用 using 语义简化处理占用约 100ms). |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
我原本是使用NatashaInitializer.Initialize();
使用是正常的,但是我每次调用构建都要2秒的时间,感觉太费时间了。
所以就想到了InitializeAndPreheating();,可是我调用这个就报错。
Natasha版本:3.1.0.0
测试代码和错误信息如下:
测试代码:
错误信息:
Originally posted by @zhangzw218 in #68
The text was updated successfully, but these errors were encountered: