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

Remove an unneccessary Mutex layer when accessing StandardMemoryPool #1949

Merged
merged 1 commit into from
Aug 8, 2022
Merged

Remove an unneccessary Mutex layer when accessing StandardMemoryPool #1949

merged 1 commit into from
Aug 8, 2022

Conversation

marc0246
Copy link
Contributor

@marc0246 marc0246 commented Aug 8, 2022

Changelog:

- **Breaking** `Device::standard_memory_pool` now returns `&Arc<StandardMemoryPool>`.

Avoids a lock and an Arc-clone every time the memory pool is accessed. once_cell was added as a dependency to accomplish this and will be vital to future optimizations. I just wanted to push this one ASAP because this API has been just broken this realease. lazy_static was removed as a dependency because it wasn't needed.

@Rua Rua merged commit 70a326c into vulkano-rs:master Aug 8, 2022
Rua added a commit that referenced this pull request Aug 8, 2022
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