Skip to content

Commit

Permalink
level_boundary.node_id are not Indices
Browse files Browse the repository at this point in the history
Perhaps we should make them Indices at some point, if the O(log n) time spent doing searchsorted is much more than the hash table lookup.
  • Loading branch information
visr committed Sep 8, 2023
1 parent 8a2f3ad commit 5205db6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ function get_level(
return if hasindex
current_level[i]
else
hasindex, i = id_index(level_boundary.node_id, node_id)
i = findsorted(level_boundary.node_id, node_id)::Int
level_boundary.level[i](t)
end
end
Expand Down

0 comments on commit 5205db6

Please sign in to comment.