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

Single backend optimizations #4952

Closed
valaphee opened this issue Jan 1, 2024 · 2 comments
Closed

Single backend optimizations #4952

valaphee opened this issue Jan 1, 2024 · 2 comments
Labels
area: performance How fast things go type: enhancement New feature or request

Comments

@valaphee
Copy link
Contributor

valaphee commented Jan 1, 2024

Is your feature request related to a problem? Please describe.
Now with work-in-progress ability to compile without specific backends it should also be possible to compile with only one (the platform preferred) backend, but at the moment backend match statements wouldn't get eliminated, optimized out.

Describe the solution you'd like
When only one backend is enabled, all the matching could get omitted and only the one enabled backend gets returned, which would also allow for better inlining and branch prediction. (especially Id::backend)

@teoxoy teoxoy added type: enhancement New feature or request area: performance How fast things go labels Jan 2, 2024
@Wumpf
Copy link
Member

Wumpf commented Jan 4, 2024

@cwfitzgerald
Copy link
Member

I'm not sure this is currently worth the bother and code overhead. We will be changing around how the dispatch code works at some point in the future either as hub removal or de-genericising wgpu-core, so I'm going to close this for now.

@cwfitzgerald cwfitzgerald closed this as not planned Won't fix, can't repro, duplicate, stale Jan 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: performance How fast things go type: enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants