Skip to content

implement IEquatable to avoid boxing in dictionary#7

Open
discodonut wants to merge 1 commit intoByteron:mainfrom
discodonut:fix-alloc
Open

implement IEquatable to avoid boxing in dictionary#7
discodonut wants to merge 1 commit intoByteron:mainfrom
discodonut:fix-alloc

Conversation

@discodonut
Copy link
Contributor

Dictionary uses IEquatable internally, and StorageType only implements IComparable, so it will get boxed and result in memory allocations.

This fixes part of Byteron/RelEcs#33

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant