Lists Are 3 Times SLOWER in .NET 9!

  Рет қаралды 26,105

Nick Chapsas

Nick Chapsas

28 күн бұрын

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

Пікірлер: 61
@antonmartyniuk
@antonmartyniuk 27 күн бұрын
Mac is evil, I knew it
@J_i_m_
@J_i_m_ 27 күн бұрын
The only conclusion is that there is a backdoor in it!
@phizc
@phizc 27 күн бұрын
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.
@nickchapsas
@nickchapsas 26 күн бұрын
I'm so blind
@brebete
@brebete 27 күн бұрын
"I'm terrible at financial decisions, yes", you got me 🤣
@Tielc
@Tielc 26 күн бұрын
This single comment in the video caused me to smash that like button.
@emielregis385
@emielregis385 27 күн бұрын
It's evolving, just backwards
@KvapuJanjalia
@KvapuJanjalia 27 күн бұрын
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.
@nickchapsas
@nickchapsas 27 күн бұрын
Wait what? Link?
@KvapuJanjalia
@KvapuJanjalia 27 күн бұрын
@@nickchapsas Issue number 33483 in EF Core repo.
@vynxc.
@vynxc. 27 күн бұрын
Video coming soon? ​@@nickchapsas
@1992jamo
@1992jamo 27 күн бұрын
Since EF Core dbset is not thread safe, it's useless to me anyway.
@zbaktube
@zbaktube 27 күн бұрын
Brothers in ARMs 🙂
@joaogabrielv.m328
@joaogabrielv.m328 26 күн бұрын
Badunts
@carlinhos10002
@carlinhos10002 27 күн бұрын
That would be terrible for those mac servers
@DynotoeTube
@DynotoeTube 15 күн бұрын
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!!
@RiddleTime
@RiddleTime 27 күн бұрын
4:50 love your honesty haha. Great videos as usual :)
@99aabbccddeeff
@99aabbccddeeff 26 күн бұрын
Thank you for staying on top of everything happening in the .NET world!
@ryan-heath
@ryan-heath 26 күн бұрын
4:25 casually flaunting his 32 hyper cpu cores 😂👌
@anshu5345
@anshu5345 17 күн бұрын
and a 4090
@andrewshirley9240
@andrewshirley9240 26 күн бұрын
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
@rs3800
@rs3800 20 күн бұрын
apropos performance, I have wondered why Nick did not make a video about general perf features e.g. DevDrive on Windows 11
@F1nalspace
@F1nalspace 27 күн бұрын
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.
@MatinDevs
@MatinDevs 27 күн бұрын
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.
@Sp1tfire100
@Sp1tfire100 27 күн бұрын
They will drop maui, ms doesn't use it, so it is doomed
@Tsunami14
@Tsunami14 27 күн бұрын
MAUI on .NET 8 was a HORRIBLE experience. So it'll be a hard sell for Microsoft to get me to try it again.
@R3ap4r
@R3ap4r 26 күн бұрын
jsuarezruiz is working on a fork for Linux for some time now.
@ErazerPT
@ErazerPT 26 күн бұрын
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...
@jongeduard
@jongeduard 18 күн бұрын
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.
@Kitulous
@Kitulous 26 күн бұрын
is this a macos problem or an apple silicon problem exactly? someone try this with an intel mac on macos
@rosepainting8775
@rosepainting8775 26 күн бұрын
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?
@georgebelletty7861
@georgebelletty7861 26 күн бұрын
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?
@okmarshall
@okmarshall 26 күн бұрын
Absolutely not. Stick with LTS releases for production, especially if you're a small team.
@jimfoye1055
@jimfoye1055 24 күн бұрын
No, it's going to be a pointless release, like 7.
@manchastyle
@manchastyle 27 күн бұрын
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?
@Miles7000
@Miles7000 24 күн бұрын
Hello, when will available tutorials about Blazor web in Dometrain??
@ManderO9
@ManderO9 27 күн бұрын
lists go brrrr, lmao, what a project name.
@joseduque2406
@joseduque2406 26 күн бұрын
Hahaha I use the same logic when buying a new laptop 😂 you work hard man, why not treat yourself with a awesome MacBook.
@zfold4702
@zfold4702 26 күн бұрын
Waiting for Benchmark training
@desertfish74
@desertfish74 27 күн бұрын
ListsGoBrrrrrrrrr
@BasvanderVeeken
@BasvanderVeeken 27 күн бұрын
There wasn't an improvement in .NET 9 on the test. Just the order was different, first both .NET 8 and then 9.
@amitkumdixit
@amitkumdixit 26 күн бұрын
This is not a correct benchmark. Since most of these apps will be deployed on a Linux server.
@iSoldat
@iSoldat 26 күн бұрын
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.
@nikolayrogchev9628
@nikolayrogchev9628 26 күн бұрын
The namespace ... hahah
@sebastianwhiffen9594
@sebastianwhiffen9594 26 күн бұрын
ListsGoBrrr namespace lmao
@danda-dandic
@danda-dandic 26 күн бұрын
Lists go brrr :D
@anilkumarpelluri3795
@anilkumarpelluri3795 27 күн бұрын
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
@soonhongng7037
@soonhongng7037 26 күн бұрын
blud is try to justify himself XDDDD respect
@IllllllllIlIIIIIII
@IllllllllIlIIIIIII 27 күн бұрын
eurgh, that new ui looks so bad :/
@Tony-dp1rl
@Tony-dp1rl 26 күн бұрын
It has evolved ... into an animal that cannot run as fast ... lol
@antosha2224
@antosha2224 27 күн бұрын
does it really matter? this issue is only about macos local environments...
@nickchapsas
@nickchapsas 27 күн бұрын
This time it's on macos next time is on linux x64. The main learning of this issue still matters
@IgorSodre-kx7iq
@IgorSodre-kx7iq 27 күн бұрын
What the F. Comment section is full of strange bots.
@guiorgy
@guiorgy 27 күн бұрын
Insert the "First time?" meme here
@IgorSodre-kx7iq
@IgorSodre-kx7iq 27 күн бұрын
@@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.
@LilPozzer
@LilPozzer 27 күн бұрын
the first one, like PLSSSS
@Roddles
@Roddles 26 күн бұрын
You are becoming too negative these days with code cop and this. Think I’ll unsubscribe
The New Collection Access Feature of C# 13
5:54
Nick Chapsas
Рет қаралды 41 М.
3 .NET "Best Practices" I Changed My Mind About
10:16
Nick Chapsas
Рет қаралды 98 М.
YouTube's Biggest Mistake..
00:34
Stokes Twins
Рет қаралды 73 МЛН
Зомби Апокалипсис  часть 1 🤯#shorts
00:29
INNA SERG
Рет қаралды 7 МЛН
Joven bailarín noquea a ladrón de un golpe #nmas #shorts
00:17
The Easiest Scheduling for Your .NET Applications
11:25
Nick Chapsas
Рет қаралды 66 М.
How to fine-tune LLMs using Unsloth? (text2cypher use case)
14:29
Geraldus Wilsen
Рет қаралды 759
"Stop Using Async Await in .NET to Save Threads" | Code Cop #018
14:05
Stop Using the Worst Way to Loop Lists in .NET!
9:35
Nick Chapsas
Рет қаралды 42 М.
"Stop Using Properties in C#, Just Use Fields" | Code Cop #013
11:53
Await Async Tasks Are Getting Awesome in .NET 9!
9:24
Nick Chapsas
Рет қаралды 82 М.
How to Deploy .NET 8's New .NET Aspire Stack
10:42
Nick Chapsas
Рет қаралды 41 М.
zig is the future of programming. here's why.
9:34
Low Level Learning
Рет қаралды 152 М.
YouTube's Biggest Mistake..
00:34
Stokes Twins
Рет қаралды 73 МЛН