From ada20bed23aaaf470d89e1d215f400c55e4cda11 Mon Sep 17 00:00:00 2001 From: Mark Tucker Date: Mon, 20 Apr 2020 16:23:26 -0400 Subject: [PATCH] Clear primInfo->extraDependencies in _RemoveDependencies after they have been added to _dependenciesToRemove. Previously the contents of this set were never cleared, and removing many prims would add N copies of the N extrDependencies to the _dependenciesToRemove vector, chewing up enormous time and memory. --- pxr/usdImaging/usdImaging/indexProxy.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/pxr/usdImaging/usdImaging/indexProxy.cpp b/pxr/usdImaging/usdImaging/indexProxy.cpp index 86dce54ecf..73a059bb9d 100644 --- a/pxr/usdImaging/usdImaging/indexProxy.cpp +++ b/pxr/usdImaging/usdImaging/indexProxy.cpp @@ -115,6 +115,7 @@ UsdImagingIndexProxy::_RemoveDependencies(SdfPath const& cachePath) UsdImagingDelegate::_DependencyMap::value_type( dep, cachePath)); } + primInfo->extraDependencies.clear(); } void