nizhikov commented on pull request #9518:
URL: https://github.com/apache/ignite/pull/9518#issuecomment-971884020
It seems to me that almost all of the current usages of
`GridDhtPartitionMap#get(Integer)` use int as a parameter and two stack below
we unbox Integer to int anyway.
So we can simply refactor get to `GridDhtPartitionState#get` and made state
method public.
```
public GridDhtPartitionState get(int part) {
return map.state(part);
}
```
This will completely eliminate boxing -> unboxing during this piece of code.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]