Skip to content

Commit

Permalink
ENABLE_REGION_THRESHOLD fine-tuning
Browse files Browse the repository at this point in the history
  • Loading branch information
guo-yong-zhi committed Dec 20, 2021
1 parent 2639a52 commit d265e2b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/qtree_functions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -203,9 +203,9 @@ function batchcollisions_region(qtrees::AbstractVector{U8SQTree}, inds::Union{Ab
batchcollisions_region(qtrees, regtree; kargs...)
end

const QTREE_COLLISION_ENABLE_TH = round(Int, 15 + 10 * log2(Threads.nthreads()))
const REGION_ENABLE_THRESHOLD = round(Int, 10+10log2(Threads.nthreads()))
function batchcollisions(qtrees::AbstractVector{U8SQTree}, args...; unique=true, kargs...)
if length(qtrees) > QTREE_COLLISION_ENABLE_TH
if length(qtrees) > REGION_ENABLE_THRESHOLD
return batchcollisions_region(qtrees, args...; unique=unique, kargs...)
else
return batchcollisions_native(qtrees, args...; kargs...)
Expand Down

2 comments on commit d265e2b

@guo-yong-zhi
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator register()

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/50858

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.7.0 -m "<description of version>" d265e2b0f3066ba88d75388798e787f54390e8e3
git push origin v0.7.0

Please # to comment.