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

Replace boost hash usage with TfHash in pxr/usd/pcp #2186

Merged
merged 1 commit into from
Apr 3, 2023

Conversation

nvmkuruc
Copy link
Collaborator

@nvmkuruc nvmkuruc commented Jan 20, 2023

Description of Change(s)

Requires #2173
To remove the dependency of pxr/usd/pcp on boost's hashing functions

  • PcpInstanceKey now relies on TfHash's hashing of containers instead of its own iteration. To support this, the method _Arc::GetHash has been replaced with a TfHashAppend overload
  • PcpLayerStackIdentifier{,Str}, PcpMapExpression, PcpSite{,Str} use TfHash::Combine instead of boost::hash_combine
  • Hashing test coverage has been added for PcpInstanceKey and PcpMapFunction
  • PcpMapFunction's hashing has been split off into an overload of TfHashAppend for its _Data which is TfHash::Combined with the hash of its _offset field

Fixes Issue(s)

-#2172 (additional PRs forthcoming)

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

@sunyab
Copy link
Contributor

sunyab commented Jan 27, 2023

Filed as internal issue #USD-7906

@pixar-oss pixar-oss merged commit c567a16 into PixarAnimationStudios:dev Apr 3, 2023
@nvmkuruc nvmkuruc deleted the pcphash branch December 29, 2023 03:10
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.

3 participants