]> OCCT Git - occt-copy.git/commit
0030738: Data Exchange - XCAFDoc_ShapeTool::updateComponent() is too long
authorkgv <kgv@opencascade.com>
Thu, 23 May 2019 19:46:58 +0000 (22:46 +0300)
committerkgv <kgv@opencascade.com>
Thu, 23 May 2019 19:48:48 +0000 (22:48 +0300)
commit2eec3946982ee9c69fc66e4e9f334089c440f58e
tree41accd6ce57de08ec930acf260a6f762584cd4ae
parent4811214cc04f1332f129970d4c818d6ecc9a868a
0030738: Data Exchange - XCAFDoc_ShapeTool::updateComponent() is too long

Cache subshapes list into map instead of re-iterating it multiple times within the loop.
Avoid iteration at all if modified state has been already detected.

XCAFDoc now returns GUIDs by const reference instead of a copy.
src/XCAFDoc/XCAFDoc.cxx
src/XCAFDoc/XCAFDoc.hxx
src/XCAFDoc/XCAFDoc_ShapeTool.cxx