[Tin tức] How did C# and .NET get so insanely fast? #Shorts



Full video on Span:

42 bình luận về “[Tin tức] How did C# and .NET get so insanely fast? #Shorts”

  1. The Java servlet numbers are quite deceiving. First, servlets are outdated as hell as of today: something like Quarkus, Micronaut or Helidon are much better choices(especially in native mode using GraalVM). Furthermore, if you really want to use servlets, you should at least specify the vendor and the servlet environment where it's running

    Bình luận
  2. I love these things. Using unsafe they can allow you to interpret an array as any type. Meaning a set of data can be a void*, int*, etc. its a game changer for making efficient code without excessive copies or garbage collections. Unfortunately, you get a warning for using it in c++/cli. I think its because the cli doesnt enforce a specific alloc method so it isnt entirely sure you arent putting it on the heap. Unfortunate, but it is what it is

    Bình luận
  3. Just FYI, the GC and benefits of Span are orthogonal. C/C++/Rust/etc. all benefit from avoiding heap allocations. Allocating on and freeing data from the heap are slow operations. In all languages, tuning for high performance always involves being very cognizant of allocations and how the data is used in memory. You'll pool memory (e.g. allocate once and reuse), optimize for data locality (e.g. using data-oriented design to optimize caching performance), and, in really extreme cases, probably come up with efficient ways to pack data to increase your cache's hit rate. Span is simply allowing a developer to tap into the same optimization patterns you'd find in those lower level languages, where they'd use pointers into preallocated hunks of memory (both heap and stack allocated).

    Yes, GC causes pauses (e.g. batched "frees" — which is actually often faster overall, it just looks bad on a micro scale) on top of the standard heap allocation slowness, but it's the heap allocation we care about eliminating, not that the GC is bad for some reason.

    Bình luận

Viết một bình luận

bahis10bets.com betvole1.com casinomaxi-giris.com interbahis-giris1.com klasbahis1.com mobilbahisguncelgiris1.com piabetgiris1.com tipobettgiris.com tumbetgiris1.com betboro 1xbet giriş
bahis10bets.com betvole1.com casinomaxi-giris.com interbahis-giris1.com klasbahis1.com mobilbahisguncelgiris1.com piabetgiris1.com tipobettgiris.com tumbetgiris1.com betboro 1xbet giriş
antalya bayan escort
antalya bayan escort
antalya bayan escort