Skip to content

Conversation

@dgovil
Copy link
Collaborator

@dgovil dgovil commented Jan 7, 2026

Description of Change(s)

We were seeing failures when reading usda files great than INT_MAX on macos because the handling of larger buffers was implementation defined. The implementation here should resolve the issue instead and be more portable, allowing reads of much larger files.

This shouldn't cause any performance regressions since pread on linux also caps out at INT_MAX, but just handles the capping internally to itself.

Thanks to Nate Reid for the patch.

Fixes Issue(s)

#3582

Checklist

We were seeing failures when reading usda files great than INT_MAX on macos because the handling of larger buffers was implementation defined. The implementation here should resolve the issue instead and be more portable, allowing reads of much larger files.

Thanks to Nate Reid for the patch.
@jesschimein
Copy link
Collaborator

Filed as internal issue #USD-11755

(This is an automated message. See here for more information.)

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