faster
This commit is contained in:
parent
fe40fd55c7
commit
c3c059b534
1 changed files with 1 additions and 1 deletions
|
@ -1105,7 +1105,7 @@ proc partitionSegments(
|
||||||
## Puts segments into the height partitions they intersect with.
|
## Puts segments into the height partitions they intersect with.
|
||||||
let
|
let
|
||||||
maxPartitions = max(1, height div 4).uint32
|
maxPartitions = max(1, height div 4).uint32
|
||||||
numPartitions = min(maxPartitions, max(1, segments.len div 4).uint32)
|
numPartitions = min(maxPartitions, max(1, segments.len div 2).uint32)
|
||||||
|
|
||||||
result.partitions.setLen(numPartitions)
|
result.partitions.setLen(numPartitions)
|
||||||
result.startY = top.uint32
|
result.startY = top.uint32
|
||||||
|
|
Loading…
Reference in a new issue