resolve_max_depth


Description:

public abstract int resolve_max_depth (int64 elements, int threads)

Calculates the proper max depth.

Parameters:

elements

an estimate of the number of elements. it is negative if infinite or unknown.

threads

the number of threads (always >= 1)

Returns:

max depth. 0: no split, 1: one split, 2: two split, ... (a split may generate one or more child nodes). unlimited if negative

See also:

ForkJoinTask.max_depth