-
Notifications
You must be signed in to change notification settings - Fork 423
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
Use HashSet
instead of List
for temporary check in transform handling
#6106
Conversation
While the choice of So I'm not sure I'm seeing the overheads... Are there profiling results? |
Yeah, I'll provide at some point when I have the bandwidth. During gameplay there are some scenarios where transforms get cancelled a lot, and this becomes a top 5 allocator. Can also cache to a private to improve things. Also I read the hashset resize and it looked to be lower overhead than list, but maybe i misread. |
Also added benchmark coverage of this.
|
Noticed that this has no reason to be a list. Changing to
HashSet
avoids overheads from list capacity resizing.