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

Optimize Sdf_PathNode::GetPathToken() by avoiding unnecessary memory allocation #3312

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

Conversation

petrihakkinen
Copy link

Description of Change(s)

GetPathToken no longer does a memory allocation when the token already exists. A benchmark that calls SdfPath::GetString repeatedly on a large amount of SdfPaths shows 2.3x improvement on Windows.

Note that the following unit tests fail on Windows with or without the changes:

158 - testWorkThreadLimitsRawTBBMax (Failed)
767 - testUsdviewNavigationKeys (Failed)
783 - testUsdResolverExample (Failed)

Fixes Issue(s)

None.

  • I have verified that all unit tests pass with the proposed changes
  • I have submitted a signed Contributor License Agreement

@jesschimein
Copy link
Contributor

Filed as internal issue #USD-10180

@jesschimein
Copy link
Contributor

/AzurePipelines run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants