Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
More efficient distance to vertex calculation in extract nodes alg
Instead of calculating the whole distance from the start of the geometry to the vertex for EVERY vertex, we just keep a running sum of the cumulative distance so far and add the length of each segment as we go. Stats: Before: - dataset 1: > 20 minutes, still going at 14%.... - dataset 2: 92 seconds After: - dataset 1: 3 seconds - dataset 2: 1.7 seconds BAM!
- Loading branch information