Lists Are 3 Times SLOWER in .NET 9!

2024 ж. 23 Сәу.
25 684 Рет қаралды

Until the 30th of April, use code BIRTHDAY40 for 40% off any course, BIRTHDAY20 for 20% off any bundle and BIRTHDAY15 for 15% off your first year of Dometrain Pro: bit.ly/4aUVR8l
Become a Patreon and get special perks: / nickchapsas
Hello, everybody, I'm Nick, and in this video I want to talk about a performance regression in .NET 9 regarding the Add method of Lists which is only happening on MacOS.
Help Microsoft troubleshoot it: github.com/dotnet/runtime/iss...
Workshops: bit.ly/nickworkshops
Don't forget to comment, like and subscribe :)
Social Media:
Follow me on GitHub: github.com/Elfocrash
Follow me on Twitter: / nickchapsas
Connect on LinkedIn: / nick-chapsas
Keep coding merch: keepcoding.shop
#csharp #dotnet

Пікірлер
  • Mac is evil, I knew it

    @antonmartyniuk@antonmartyniuk17 күн бұрын
  • The only conclusion is that there is a backdoor in it!

    @J_i_m_@J_i_m_17 күн бұрын
  • 4:14 Nick, you compared the normal vs preallocated. The ordering of the rows are different. The differences between .NET 8 and 9 were insignificant.

    @phizc@phizc17 күн бұрын
    • I'm so blind

      @nickchapsas@nickchapsas17 күн бұрын
  • "I'm terrible at financial decisions, yes", you got me 🤣

    @brebete@brebete17 күн бұрын
    • This single comment in the video caused me to smash that like button.

      @Tielc@Tielc16 күн бұрын
  • It's evolving, just backwards

    @emielregis385@emielregis38517 күн бұрын
  • Brothers in ARMs 🙂

    @zbaktube@zbaktube17 күн бұрын
    • Badunts

      @joaogabrielv.m328@joaogabrielv.m32817 күн бұрын
  • Speaking of regressions in .NET 9: they also added EF Core context model automatic compilation during build, and it got 5 times slower (compared to .NET 7) or something like that.

    @KvapuJanjalia@KvapuJanjalia17 күн бұрын
    • Wait what? Link?

      @nickchapsas@nickchapsas17 күн бұрын
    • @@nickchapsas Issue number 33483 in EF Core repo.

      @KvapuJanjalia@KvapuJanjalia17 күн бұрын
    • Video coming soon? ​@@nickchapsas

      @vynxc.@vynxc.17 күн бұрын
    • Since EF Core dbset is not thread safe, it's useless to me anyway.

      @1992jamo@1992jamo17 күн бұрын
  • I have a AMD Epyc Rome, 256 Gb of memory on Windows 10 Pro for Workstations, and have noticed a 3-4x slowdown on some of my C# exe's. I have one project that downloads and writes purposely fragmented text files (anywhere between 500-800k files) then joins the fragments to one file and results to about 37k files. Project heavily uses arrays, arraylists and file IO and directory class. Only difference I can think about is updates to windows and windows quality updates and .Net updates!!

    @DynotoeTube@DynotoeTube5 күн бұрын
  • That would be terrible for those mac servers

    @carlinhos10002@carlinhos1000217 күн бұрын
  • One small mistake you made-- in the github issue, you said their results showed perf increase while yours was the same. Theirs was the same too! But your benchmark tool prints the results in "8-9, 8-9" order, while the issues post is in "8-8, 9-9" order, which I think tripped you up

    @andrewshirley9240@andrewshirley924017 күн бұрын
  • 4:25 casually flaunting his 32 hyper cpu cores 😂👌

    @ryan-heath@ryan-heath17 күн бұрын
    • and a 4090

      @anshu5345@anshu53458 күн бұрын
  • Thank you for staying on top of everything happening in the .NET world!

    @99aabbccddeeff@99aabbccddeeff16 күн бұрын
  • Microsoft won't be adding support for MAUI on Linux. As many Microsoft employees watch your videos, I suggest you make a video about this.

    @MatinDevs@MatinDevs17 күн бұрын
    • They will drop maui, ms doesn't use it, so it is doomed

      @Sp1tfire100@Sp1tfire10017 күн бұрын
    • MAUI on .NET 8 was a HORRIBLE experience. So it'll be a hard sell for Microsoft to get me to try it again.

      @Tsunami14@Tsunami1417 күн бұрын
    • jsuarezruiz is working on a fork for Linux for some time now.

      @R3ap4r@R3ap4r17 күн бұрын
    • Xamarin.Forms was bad, MAUI took that and went up to 11, trash level. Now... native iOS and Windows.Forms are GREAT to work with and not all that dissimilar, so... which UI model is thrown in the mix that a cross-compatible layer becomes trash? Guess... Funny enough, same company has Skia, which is one of the most enjoyable "low level layer" things to work with. Sometimes things are just bass ackwards...

      @ErazerPT@ErazerPT16 күн бұрын
    • Personally, I consider Avalonia the best gui framework that currently exists for dotnet. This project is the only one doing things actually right, by building everything up from low level graphics, so that it's way less heavy, and the entire structure of the code is so much better. MAUI and Uno build everything on top of other stuff, making everything extremely heavy and complex. Avalonia also far more friendly when coming from WPF. The only thing is that it's not yet another framework developed by just Microsoft. But the difference is that I consider that actually a good thing.

      @jongeduard@jongeduard9 күн бұрын
  • 4:50 love your honesty haha. Great videos as usual :)

    @RiddleTime@RiddleTime17 күн бұрын
  • Nick, is there any point using .NET 9? We are small team with many apps to maintain, because of .NET version support lifetimes. It is very hard to use non-LTS versions of .NET regardless of any cool features that may come up!! What's your opinion?

    @georgebelletty7861@georgebelletty786117 күн бұрын
    • Absolutely not. Stick with LTS releases for production, especially if you're a small team.

      @okmarshall@okmarshall16 күн бұрын
    • No, it's going to be a pointless release, like 7.

      @jimfoye1055@jimfoye105514 күн бұрын
  • Hi Nick, I am also Nick, I want to become C# .Net developer I checked your website, I found it difficult to figure out which course to do first. Can you put order on your courses?

    @rosepainting8775@rosepainting877516 күн бұрын
  • apropos performance, I have wondered why Nick did not make a video about general perf features e.g. DevDrive on Windows 11

    @rs3800@rs380010 күн бұрын
  • is this a macos problem or an apple silicon problem exactly? someone try this with an intel mac on macos

    @Kitulous@Kitulous16 күн бұрын
  • Hello, when will available tutorials about Blazor web in Dometrain??

    @Miles7000@Miles700014 күн бұрын
  • I believe we're experiencing a similar transition once again. Just as with WebForms, there's now Blazor. Initially, there was the advent of WebMethods, which ushered in the era of AJAX. Presently, everything seems to revolve around APIs. And now, we have Blazor, essentially a reinvention. Why not opt for a simpler approach of creating everything as an API and universally implementing it?

    @manchastyle@manchastyle17 күн бұрын
  • List.Add() is very essential, so if this slower... a lot of code that builds on top on that is much slower. Regarding performance regession tests... in the large company i am working right now, we don't do such tests. Those are too expensive and most of the time the customer doesn't care if the data plots in 2 or 4 seconds. If the plot takes 3 minutes, then we maybe would investigate that... But i totally share your oppinion, you have absolutely do performance and even stability tests when upgrading a version or framework.

    @F1nalspace@F1nalspace17 күн бұрын
  • lists go brrrr, lmao, what a project name.

    @ManderO9@ManderO917 күн бұрын
  • Hahaha I use the same logic when buying a new laptop 😂 you work hard man, why not treat yourself with a awesome MacBook.

    @joseduque2406@joseduque240617 күн бұрын
  • Waiting for Benchmark training

    @zfold4702@zfold470216 күн бұрын
  • There wasn't an improvement in .NET 9 on the test. Just the order was different, first both .NET 8 and then 9.

    @BasvanderVeeken@BasvanderVeeken17 күн бұрын
  • ListsGoBrrrrrrrrr

    @desertfish74@desertfish7417 күн бұрын
  • From my first data processing class on an Apple IIe to today's x86 architecture, I swore I would never buy an apple product. I've honored that promise without compromise and I believe the iphone is the most evil tech on the planet.

    @iSoldat@iSoldat16 күн бұрын
  • This is not a correct benchmark. Since most of these apps will be deployed on a Linux server.

    @amitkumdixit@amitkumdixit16 күн бұрын
  • Lists go brrr :D

    @danda-dandic@danda-dandic17 күн бұрын
  • I like your videos, but you're passing a statement where you really know what Microsoft team has worked. Where did you see in the document for the list improvements

    @anilkumarpelluri3795@anilkumarpelluri379517 күн бұрын
  • The namespace ... hahah

    @nikolayrogchev9628@nikolayrogchev962816 күн бұрын
  • ListsGoBrrr namespace lmao

    @sebastianwhiffen9594@sebastianwhiffen959416 күн бұрын
  • eurgh, that new ui looks so bad :/

    @IllllllllIlIIIIIII@IllllllllIlIIIIIII17 күн бұрын
  • blud is try to justify himself XDDDD respect

    @soonhongng7037@soonhongng703716 күн бұрын
  • It has evolved ... into an animal that cannot run as fast ... lol

    @Tony-dp1rl@Tony-dp1rl16 күн бұрын
  • does it really matter? this issue is only about macos local environments...

    @antosha2224@antosha222417 күн бұрын
    • This time it's on macos next time is on linux x64. The main learning of this issue still matters

      @nickchapsas@nickchapsas17 күн бұрын
  • What the F. Comment section is full of strange bots.

    @IgorSodre-kx7iq@IgorSodre-kx7iq17 күн бұрын
    • Insert the "First time?" meme here

      @guiorgy@guiorgy17 күн бұрын
    • @@guiorgy Hahahaha, I know every video is full of bots trying to scam people, but the ones I saw here where just writing some weird philosophical maybe motivation things.

      @IgorSodre-kx7iq@IgorSodre-kx7iq17 күн бұрын
  • the first one, like PLSSSS

    @LilPozzer@LilPozzer17 күн бұрын
  • You are becoming too negative these days with code cop and this. Think I’ll unsubscribe

    @Roddles@Roddles17 күн бұрын
KZhead