ygerzhedovich commented on code in PR #7834:
URL: https://github.com/apache/ignite-3/pull/7834#discussion_r2965362265
##########
modules/table/src/main/java/org/apache/ignite/internal/table/TableImpl.java:
##########
@@ -267,11 +269,11 @@ public TableIndexStoragesSupplier
indexStorageAdapters(int partitionId) {
}
@Override
- public Supplier<Map<Integer, IndexLocker>> indexesLockers(int partId) {
+ public Supplier<Int2ObjectMap<IndexLocker>> indexesLockers(int partId) {
return () -> {
List<IndexWrapper> factories = new
ArrayList<>(indexWrapperById.values());
- Map<Integer, IndexLocker> lockers = new
HashMap<>(factories.size());
+ Int2ObjectMap<IndexLocker> lockers = new
Int2ObjectOpenHashMap<>(factories.size());
Review Comment:
Let's use Int2ObjectArrayMap instead of Int2ObjectOpenHashMap, because we do
not have so many values here
--
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]