| ▲ | Zambyte 3 hours ago | |||||||
> largely by focusing on eliminating allocations rather than doing anything particularly clever algorithmically. Did rewriting it in C# make this easier, or did rewriting make this easier? | ||||||||
| ▲ | theolivenbaum 2 hours ago | parent [-] | |||||||
I've of course not tried rewriting it in other languages, so take that with a grain of salt. But the code is by design required to stay aligned with the source codebases as the ports are continuously updated with upstream improvements, so I don't think the gains are coming from being a very different rewrite. What I see is just how much easier it is to express efficient code in c# without loosing expressiveness, with a really nice to use low level support (Span/ReadOnlySpan, stackalloc, built in intrinsics support, easy to use pooling, etc) so you can refactor where it matters. | ||||||||
| ||||||||