tkalkirill commented on code in PR #907:
URL: https://github.com/apache/ignite-3/pull/907#discussion_r914870191


##########
modules/page-memory/src/main/java/org/apache/ignite/internal/pagememory/persistence/checkpoint/CheckpointWorkflow.java:
##########
@@ -63,14 +61,8 @@
  * <p>{@link CheckpointWorkflow#markCheckpointEnd} - Finalization of last 
checkpoint.
  */
 class CheckpointWorkflow {
-    /**
-     * Starting from this number of dirty pages in checkpoint, array will be 
sorted with {@link Arrays#parallelSort(Comparable[])} in case
-     * of {@link CheckpointWriteOrder#SEQUENTIAL}.
-     */
-    private final int parallelSortThreshold;
-
-    /** This number of threads will be created and used for parallel sorting. 
*/
-    private static final int PARALLEL_SORT_THREADS = 
Math.min(Runtime.getRuntime().availableProcessors(), 8);
+    /** Starting from this number of dirty pages in checkpoint, array will be 
sorted with {@link Arrays#parallelSort(Comparable[])}. */
+    static final int PARALLEL_SORT_THRESHOLD = 40_000;

Review Comment:
   The link is in the ticket, do you think there is a need to indicate in the 
comments?



-- 
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