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

[usdAbc] Reenable USD_ABC_READ_ARCHIVE_USE_MMAP #2439

Merged
merged 1 commit into from
Jun 21, 2023

Conversation

shadeops
Copy link
Contributor

With this change a user may set USD_ABC_READ_ARCHIVE_USE_MMAP=0 to disable memory map read support.

Description of Change(s)

The USD_ABC_READ_ARCHIVE_USE_MMAP TfGetEnvSetting was defined but had no effect when set. Originally intended to allow for the user to choose between pread and mmap, the functionality was lost in commit 5a795b2.

We restore that functionality and change USD_ABC_READ_ARCHIVE_USE_MMAP's default from 'false' to 'true' to match the current behavior of Alembic 1.7.9+ and the usdAbc plugin.

Fixes Issue(s)

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

The USD_ABC_READ_ARCHIVE_USE_MMAP TfGetEnvSetting was defined but
had no effect when set. Originally intended to allow for the user
to choose between pread and mmap, the functionality was lost in
commit 5a795b2.

We restore that functionality and change USD_ABC_READ_ARCHIVE_USE_MMAP's
default from 'false' to 'true' to match the current behavior of
Alembic 1.7.9+ and the usdAbc plugin.
@sunyab
Copy link
Contributor

sunyab commented May 23, 2023

Filed as internal issue #USD-8353

@pixar-oss pixar-oss merged commit 330c47b into PixarAnimationStudios:dev Jun 21, 2023
@shadeops shadeops deleted the usdAbc_fix_mmap_env branch June 21, 2023 19:20
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