Slow rendering of components with a large tree structure