Feng Yuan

Results 5 comments of Feng Yuan

I captured an ETW trace afterwards, HashSet.Contains cost is 0.2% CPU, quite small. There are lots of other places which uses much more CPU. For example Depth() is using 1.9%...

@sharwell, are you worried about HashSet.Add time or HashSet.Contains time? When you're analyzing gcDump file with 70-90 million nodes, how many nodes are they sampled down to? How much would...

@sharwell , check new change. I'm adding a new class IndexSet which automatically switches to use bitset when there are enough element to make it more memory efficient.

@sharwell, can you provide a test case which shows CPU time with this integer set is over great importance? I think CPU time is never the real issue. The real...