Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve performance of OPCPackage#getPartsByRelationshipType #199

Open
wants to merge 1 commit into
base: trunk
Choose a base branch
from

Commits on Dec 18, 2020

  1. Improve performance of OPCPackage#getPartsByRelationshipType

    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 committed Dec 18, 2020
    Configuration menu
    Copy the full SHA
    f1ebcc5 View commit details
    Browse the repository at this point in the history