-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Optimize label comparisons and remove restrictions on types that can be labels #5377
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
Closed
Closed
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
965fc36
store a number to distinguish labels of the same type
joseph-gio 2769bd1
use a fn pointer for formatting
joseph-gio d514ecc
format generics in `Label` derive
joseph-gio f57f166
allow more kinds of empty structs
joseph-gio c3bbe81
use fn pointer for comparisons
joseph-gio b38c00c
add downcasting infrastructure
joseph-gio dd70ae1
add an example for heap-allocated labels
joseph-gio db9b93a
add a struct for interning labels
joseph-gio 4699a23
support deriving interned labels
joseph-gio e76de87
improve derive example
joseph-gio d27cf32
hide downcast implementation details
joseph-gio a476189
implement string labels
joseph-gio 08807e9
add a type to intern concrete labels
joseph-gio 81ecfa5
simplify intener APIs
joseph-gio 45ec97b
make the benchmark more realistic
joseph-gio 57f68dd
apply suggestions from code review
joseph-gio af4f557
undo an optimization 😭
joseph-gio 07c7b1c
use a reference to shrink the stack size
joseph-gio 15c5046
fix a typo
joseph-gio 0231141
use `impl StageLabel` for `get_stage{_mut}`
joseph-gio 989b916
hide vtable implementation details
joseph-gio 224ffa9
move interner types into `bevy_utils`
joseph-gio File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.