Skip to content

Commit c204a14

Browse files
jishnubasinghvi17
andauthored
Add comment about type-stability
Co-authored-by: Anshul Singhvi <[email protected]>
1 parent 6079b09 commit c204a14

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/bootstrap.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ function bootweights(design::SurveyDesign; replicates = 4000, rng = MersenneTwis
3030
cluster_sorted = sort(substrata, design.cluster)
3131
cluster_sorted_designcluster = cluster_sorted[!, design.cluster]
3232
cluster_weights = cluster_sorted[!, design.weights]
33+
# Perform the inner loop in a type-stable function to improve runtime.
3334
_bootweights_cluster_sorted!(cluster_sorted, cluster_weights,
3435
cluster_sorted_designcluster, replicates, rng)
3536
substrata_dfs[h] = cluster_sorted

0 commit comments

Comments
 (0)