百里(barry)

Results 12 comments of 百里(barry)

@PokIsemaine Removing cache is a good idea, but when users customize matchingFunc and the functions in matchingFunc are slow, it still causes the `enforce` to be slow. Of course, this...

This PR is only a reference, it is an incomplete solution

@PokIsemaine In our production environment, I made simple optimizations - Transforming pre allocated slices into maps - Filter unnecessary data using domain - Object Pool Reuse Map [Not the most...

@hsluoyz https://github.com/casbin/casbin/pull/1256 These are some of our adjustments, to emphasize, they have been optimized for our model, and this is not a general optimization

https://en.wikipedia.org/wiki/MinHash 这个也可以集成下,我们之前用于文档的相识度,用这个比较的

Thank you for taking this issue seriously. I will provide my own benchmark ``` package bench import ( "fmt" "log" "testing" "github.com/casbin/casbin/v2" ) var e1 *casbin.Enforcer func init() { e,...

@PokIsemaine Is there anything else that needs to be added

``` com.intellij.diagnostic.PluginException: Failed to build stub tree for custom_options.proto [Plugin: io.kanro.idea.plugin.protobuf] at com.intellij.diagnostic.PluginProblemReporterImpl.createPluginExceptionByClass(PluginProblemReporterImpl.java:23) at com.intellij.diagnostic.PluginException.createByClass(PluginException.java:90) at com.intellij.psi.stubs.StubTreeBuilder.handleStubBuilderException(StubTreeBuilder.java:105) at com.intellij.psi.stubs.StubTreeBuilder.lambda$buildStubTree$3(StubTreeBuilder.java:142) at com.intellij.psi.impl.PsiManagerImpl.runInBatchFilesMode(PsiManagerImpl.java:462) at com.intellij.psi.stubs.StubTreeBuilder.buildStubTree(StubTreeBuilder.java:132) at com.intellij.psi.stubs.StubUpdatingIndex$2.computeValue(StubUpdatingIndex.java:206) at com.intellij.psi.stubs.StubUpdatingIndex$2.computeValue(StubUpdatingIndex.java:184) at com.intellij.psi.stubs.StubUpdatingIndex$2.computeValue(StubUpdatingIndex.java:153) at...

@devkanro 代码自动提醒,之前我用的时候 protobuf 代码能够根据我导入的包自动提示代码的,升级插件后就提示不了了。现在我的 golang 升级到了最新版本,之前能提示的插件也不能用了。 如果要测试,可以用github.com/googleapis/googleapis这个库