You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
Createsequence
added
refactor
Refactoring code to optimize or add functionality
primary
This is an important feature or fix that needs to be completed as a top priority
labels
Mar 15, 2024
目前 crane4j 在装配处理器中进行属性映射的时候,会使用反射工厂 PropertyOperator 的 write/read 方法获取/写入属性值,在这个过程中,每一次读写都需要进行 “找到目标类属性缓存-从属性缓存中找到具体的方法缓存”。由于框架中所有的反射都需要经过次过程,这带来了额外的性能开销。
在 2.7.0 版本中,考虑参照 Mybatis 的反射工厂的实现方式,将整个过程分为两步:
其中,对应属性映射这种“针对同一类型进行大量属性操作”的场景下,可以避免重复第一个步骤。
The text was updated successfully, but these errors were encountered: