You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A possible change could be editing both GetParts and GetReferences to take directly an HashSet as parameter
publicoverridevoidGetParts(HashSet<Tuple<long,IResourceBlock>>blocks){base.GetParts(blocks);// Add parts to the hashset}publicoverridevoidGetReferences(HashSet<IResourceBlock>blocks){base.GetReferences(blocks);// Add references to the hashset}
which would also require the setter of BlockPosition to create a temporary HashSet
Try to reduce allocations when GetReferences and GetParts are invoked.
The text was updated successfully, but these errors were encountered: