
Problem
UH Groupings manages group membership across the University of Hawaiʻi. Some of its paths were slow at university scale: a membership calculation for 20,000 members took about 3 seconds, and large CSV imports could poll for more than 42 minutes.
Approach
- Replaced nested stream scans with hash-based indexing, cutting the calculation from O(n²) to O(n).
- Replaced polling delays that grew as n1.6 ms with a fixed 5-second interval.
- Split subject ID validation into two passes: UH people first, then all sources.
- Refactored a 2,500+ line UI page into components, fixed API edge cases, added a JUnit test for composite groups, and handled JWT exceptions.
Outcome
~750×faster
Membership calculation
20,000 members
From ~3 sto ~4 ms
Nested stream scans replaced with hash-based indexing, cutting complexity from O(n²) to O(n).
500×+shorter wait
CSV import polling
10,000+ rows
From 42+ minto 5 s
Polling delays that grew as n1.6 ms with the record count replaced by a fixed 5-second interval.
~5×faster
Subject ID search
CSV validation
From ~15 msto ~3 ms
Two-pass lookups, with UH people first and all sources as the fallback.