-
Notifications
You must be signed in to change notification settings - Fork 13k
[Optimization] Init map size #2539
New issue
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
[Optimization] Init map size #2539
Conversation
Hello @Oliverwqcwrw , Thank you, but the effect of this change may be minimal. |
My idea is initialized by size to prevent
|
I understand your intent, but building mapper occurs only once during application startup and saving a few extra expansion does not make much difference in reality, I think. |
I have tested the situation of expansion and no expansion, and the data is as follows
Just as the data, the difference is quite big, although the impact of one expansion is relatively small, but in reality, we may have hundreds or even more mapper for business development, if each one saves some expansion time, then the growth of our startup speed will be obvious |
Could you share the project you used to measure the time? |
|
That really is not the right way to measure performance and the result should be rather random. So, you are not actually experiencing the performance issue with your project, is that correct? In this particular case, if there are so many discriminators in a result map that map expansion is triggered repeatedly, there may be some kind of design problem and you'll experience real performance issue when mapping the result, I think. |
Thanks for your reply,I agree with you |
No description provided.