Improve responsiveness of interval-based hierarchy builder for large
datasets