Skip to content

Optimise landscape plotting - #60

Merged
hugovk merged 1 commit into
marcusvolz:mainfrom
hugovk:speedup-landscape
Dec 29, 2025
Merged

Optimise landscape plotting#60
hugovk merged 1 commit into
marcusvolz:mainfrom
hugovk:speedup-landscape

Conversation

@hugovk

@hugovk hugovk commented Dec 28, 2025

Copy link
Copy Markdown
Collaborator

Testing on ~600 activity files, already cached.

Before: 65.50s

$ time stravavis "activities/2025*" --activities_path activities.csv --bbox helsinki.bbox -o strava2025 --plot landscape
Processing data...
Cache filename: /var/folders/c8/hl_96fcs0hjgr29njx33x20c0000gn/T/stravavis/cached_activities_1e275bfa9783382db17fdaf6a767ebc8.pkl
Loaded cached activities
Processing activities...
Plotting landscape...
Processing tracks ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100% 0:00:20
Plotting activities ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100% 0:00:42
Saved to strava2025-landscape.png
stravavis "activities/2025*" --activities_path activities.csv --bbox  -o     65.50s user 0.72s system 99% cpu 1:06.34 total

After: 24.19s

$ time stravavis "activities/2025*" --activities_path activities.csv --bbox helsinki.bbox -o strava2025 --plot landscape
Processing data...
Cache filename: /var/folders/c8/hl_96fcs0hjgr29njx33x20c0000gn/T/stravavis/cached_activities_1e275bfa9783382db17fdaf6a767ebc8.pkl
Loaded cached activities
Processing activities...
Plotting landscape...
Plotting activities ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100% 0:00:21
Saved to strava2025-landscape.png
stravavis "activities/2025*" --activities_path activities.csv --bbox  -o     24.19s user 0.44s system 98% cpu 24.883 total

@hugovk
hugovk merged commit e1a7fe8 into marcusvolz:main Dec 29, 2025
19 checks passed
@hugovk
hugovk deleted the speedup-landscape branch December 29, 2025 10:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant