ibessonov commented on code in PR #4379:
URL: https://github.com/apache/ignite-3/pull/4379#discussion_r1756829847


##########
modules/page-memory/src/main/java/org/apache/ignite/internal/pagememory/persistence/checkpoint/CheckpointPagesWriter.java:
##########
@@ -288,16 +273,13 @@ private void drainCheckpointBuffers(
                         break;
                     }
 
-                    GroupPartitionId partitionId = toPartitionId(cpPageId);
+                    GroupPartitionId partitionId = 
GroupPartitionId.convert(cpPageId);
 
                     if (shouldWriteMetaPage(partitionId)) {
                         writePartitionMeta(pageMemory, partitionId, 
tmpWriteBuf.rewind());
                     }
 
-                    pageStoreWriter = pageStoreWriters.computeIfAbsent(
-                            pageMemory,
-                            pm -> createPageStoreWriter(pm, null)
-                    );
+                    pageStoreWriter = createPageStoreWriter(pageMemory, null);

Review Comment:
   Yes, it will be almost the same, did you only wanted to optimize a single 
map lookup 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]

Reply via email to