Skip to content

Conversation

@golasa97
Copy link

Noticed significant slowdown when trying to run purr with more samples - ended up being attributable to bubble sort algorithm present in PURR. Replaced bubble sort with a quicksort, significant performance gains apparent in test cases that call PURR.

Test 10: 29.64s -> 2.82s (~10.5x speedup)
Test 19: 79.02s -> 35.70s (~2.2x speedup)

All other tests passed locally. Runtime should now scale almost linearly with increasing nsamps rather than quadratically like previously observed.

@golasa97 golasa97 changed the base branch from main to develop December 23, 2025 18:40
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.

2 participants