poi icon indicating copy to clipboard operation
poi copied to clipboard

Improve performance of OPCPackage#getPartsByRelationshipType

Open MariusVolkhart opened this issue 5 years ago • 0 comments

The previous version of this function would first retrieve a filtered set of all the relationships, and then for each of those, iterate through all of the relationships again before finding the part.

Since the relationships returned by getRelationshipsByType() are already trusted, we can retrieve the part directly by formulating the part name from the relationship.

MariusVolkhart avatar Nov 30 '20 20:11 MariusVolkhart