ValueCollections
repository
#245
Replies: 2 comments 7 replies
-
Interesting. You might want to add a set of fixed PS: I can't access your repository. |
Beta Was this translation helpful? Give feedback.
-
I also added using ValueHashSet<int> numbers = [];
for (int n = 1; n <= 5; n++) {
numbers.Add(n);
}
for (int n = 3; n <= 7; n++) {
numbers.Add(n);
}
Console.WriteLine(string.Join(", ", numbers.ToArray())); // 1, 2, 3, 4, 5, 6, 7 It's slower than
At some point I'll have to implement @linkdotnet One change I made that might be relevant to // Old:
using ValueList<int> numbers = new(stackalloc int[32]);
// New:
using ValueList<int> numbers = ValueList<int>.FromBuffer(stackalloc int[32]); This could be changed in |
Beta Was this translation helpful? Give feedback.
-
I made a repository containing some more
ref struct
types you might be interested in.Currently contains
ValueList
:Link: https://github.com/Joy-less/ValueCollections
Beta Was this translation helpful? Give feedback.
All reactions