We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
in my test HashSet is much faster and 0 gc
using System.Collections.Generic; using Collections.Pooled; using Gma.DataStructures; using UnityEngine; public class Test169 : bs { HashSet<int> HashSet = new HashSet<int>(){1,2,3,4,5,6,7,8,9}; PooledSet<int> PooledSet = new PooledSet<int>(){1,2,3,4,5,6,7,8,9}; public void Update() { using (bs.Profile("pooled")) for (int i = 0; i < 1000; i++) { PooledSet.Remove(2); } using(bs.Profile("list")) for (int i = 0; i < 1000; i++) { HashSet.Remove(2); } // Debug.Log(dd); } }
The text was updated successfully, but these errors were encountered:
Sorry, something went wrong.
jtmueller
No branches or pull requests
in my test HashSet is much faster and 0 gc
The text was updated successfully, but these errors were encountered: