rpuch commented on code in PR #907:
URL: https://github.com/apache/ignite-3/pull/907#discussion_r915073112
##########
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:
Imagine that after a year or two there are 50 commits in the history of this
file, and the line we are discussing is changed a few times (maybe the field is
made public, the line moved, then the field is made package local, etc). It may
become really difficult to find the commit which introduced this constant, and
we need to find the commit to find the ticket. But if we put the link to a
comment, there is hope that the comment will not get mutilated or removed.
--
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]