Tree-view performance optimization