C
C#11mo ago
stuw

Parallel.For but that doesn't allocate.

Parallel.For works, but weirdly enough the execution time hasn't changed at all. I'm thinking it might be because of the whole 13kb it's allocating? Is there any equivalent to parallel.for that isn't as bad?
No description
3 Replies
stuw
stuwOP11mo ago
^Literally an empty for loop right now that's taking this long
Denis
Denis11mo ago
Are you profiling in release mode?
Honza K.
Honza K.11mo ago
what are you comparing it against? if you want to benchmark something, try using this https://github.com/dotnet/BenchmarkDotNet
GitHub
GitHub - dotnet/BenchmarkDotNet: Powerful .NET library for benchmar...
Powerful .NET library for benchmarking. Contribute to dotnet/BenchmarkDotNet development by creating an account on GitHub.
Want results from more Discord servers?
Add your server