mybatis / mybatis-3

MyBatis SQL mapper framework for Java
http://mybatis.github.io/mybatis-3/
Apache License 2.0
19.55k stars 12.74k forks source link

Optimize Plugin #3166

Open kang-hl opened 1 month ago

kang-hl commented 1 month ago

The method object in the invoke method parameters != The method object saved in the signatureMap. When calling methods.contains(method), method Methods#equals() will definitely be called, and this method has low performance. Adding a Map to cache the results can avoid calling this method.