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

Pass device_t's by const-ref more #523

Closed
eyalroz opened this issue May 20, 2023 · 0 comments
Closed

Pass device_t's by const-ref more #523

eyalroz opened this issue May 20, 2023 · 0 comments

Comments

@eyalroz
Copy link
Owner

eyalroz commented May 20, 2023

We have some functions which take device_t's by value rather than by const-reference. While this will work - it now has a bit of a cost if one uses the primary context, as the device_t class caches a primary context to avoid repeated calls to obtain it. So, there is reason to prefer the latter form of passing device_t's.

@eyalroz eyalroz added the task label May 20, 2023
@eyalroz eyalroz self-assigned this May 20, 2023
eyalroz added a commit that referenced this issue May 20, 2023
eyalroz added a commit that referenced this issue Jun 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant