←back to thread

201 points olvy0 | 1 comments | | HN request time: 0.204s | source
Show context
EVa5I7bHFq9mnYK ◴[] No.41879253[source]
It's a shame, actually, that .NET performance improvements of up to x1000 could still be found after two decades and hundreds of millions spent on development.
replies(2): >>41879332 #>>41879654 #
eknkc ◴[] No.41879654[source]
Most of the time, it is not because there were too many slow things to be improved, it is mostly because they are adding more facilities to the runtime, enabling other performance improvements.

For example, the ReadOnlySpan type is a recent addition to the runtime and it will allow faster iterations when used. They simply enabled Linq to use it now.

replies(1): >>41880338 #
EVa5I7bHFq9mnYK ◴[] No.41880338[source]
ReadOnlySpan is a breakthrough innovative data structure, consisting of a pointer and a _length, that took Microsoft Corporation two decades to invent.

Well, better late than never.

replies(2): >>41880387 #>>41883634 #
1. koyote ◴[] No.41883634[source]
Given that it took C++ a similar amount of time to invent the string specific string_view I don't think it's as simple as you're making it out.

ReadOnlySpan is so powerful because it can be used generically and has implicit conversions that allow you to improve the speed of existing methods without breaking backwards compatibility.

It's well designed and that takes thought and time.