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

💡indexed_handler: Coalesce two or more callbacks with equivalent indexed field conditions into one callback #456

Open
lukevalenty opened this issue Dec 20, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@lukevalenty
Copy link
Contributor

I have a few use cases where the indexed fields for two or more callbacks will have equivalent conditions on those fields. Instead of allocating 2 or more entries in the callback array, we can combine the callbacks into a single callback with a single entry in the array. This can also give the compiler some additional opportunities to optimize the resulting assembly.

@lukevalenty lukevalenty added the enhancement New feature or request label Dec 20, 2023
elbeno added a commit to elbeno/compile-time-init-build that referenced this issue Jan 5, 2024
A building block for intel#456. Two matchers are three-way comparable, yielding a
partial ordering.

X => Y means that X > Y (intuition: "greater than" means "more strongly
constrained match").

X => Y and Y => X means that X and Y are equivalent.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant