Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
该Pull Request关联的Issue
无,单纯性能优化
修改描述
com.baomidou.mybatisplus.core.toolkit.LambdaUtils#resolve类修改,原来通过序列化方式获取方法引用的方法名称,性能上可以进行优化,通过jdk lambda提供的writeReplace方法,我们可以直接通过SFunction.class.getDeclaredMethod("writeReplace")获取SerializedLambda。
请参考如下图:
![image](https://user-images.githubusercontent.com/38466535/118091816-dc5b4980-b3fd-11eb-84ff-cff1464e636c.png)
测试用例
全部通过。
com.baomidou.mybatisplus.test.toolkit.LambdaUtilsTest#simpleTest
修复效果的截屏
去除了 com.baomidou.mybatisplus.core.toolkit.support.SerializedLambda class