We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
目前在 JHM 结果 https://github.com/meowool-catnip/cloak/runs/5175083247?check_suite_focus=true#step:4:537 中表明 constructor 的缓存要比直接获取要慢,因此可能是不必要的空运算导致的
cloak/api/src/jvmMain/kotlin/com/meowool/cloak/internal/ReflectionFactory.kt
Lines 182 to 205 in 73a1c60
考虑将缓存键对象拆分为不同的类 [FieldCacheKey, ConstructorCacheKey, MethodCacheKey]
FieldCacheKey
ConstructorCacheKey
MethodCacheKey
The text was updated successfully, but these errors were encountered:
也需要考虑将 map 分为多个,以避免潜在情况:当反射了非常多不同种类的成员时,map会变得非常大,这可能会影响搜索速度,因此将每个种类的成员分开来也许会更好。
cloak/api/src/main/kotlin/com/meowool/cloak/internal/ReflectionFactory.kt
Lines 43 to 45 in 0b26ee4
Sorry, something went wrong.
Fix #6 Split member cache key
5e5cc57
No branches or pull requests
目前在 JHM 结果 https://github.com/meowool-catnip/cloak/runs/5175083247?check_suite_focus=true#step:4:537 中表明 constructor 的缓存要比直接获取要慢,因此可能是不必要的空运算导致的cloak/api/src/jvmMain/kotlin/com/meowool/cloak/internal/ReflectionFactory.kt
Lines 182 to 205 in 73a1c60
考虑将缓存键对象拆分为不同的类 [FieldCacheKey
,ConstructorCacheKey
,MethodCacheKey
]The text was updated successfully, but these errors were encountered: