Lists Are 3 Times SLOWER in .NET 9!

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

Nick Chapsas

Nick Chapsas

Ай бұрын

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

Пікірлер: 60
@antonmartyniuk
@antonmartyniuk Ай бұрын
Mac is evil, I knew it
@phizc
@phizc Ай бұрын
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 Ай бұрын
I'm so blind
@brebete
@brebete Ай бұрын
"I'm terrible at financial decisions, yes", you got me 🤣
@Tielc
@Tielc Ай бұрын
This single comment in the video caused me to smash that like button.
@J_i_m_
@J_i_m_ Ай бұрын
The only conclusion is that there is a backdoor in it!
@KvapuJanjalia
@KvapuJanjalia Ай бұрын
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 Ай бұрын
Wait what? Link?
@KvapuJanjalia
@KvapuJanjalia Ай бұрын
@@nickchapsas Issue number 33483 in EF Core repo.
@vynxc.
@vynxc. Ай бұрын
Video coming soon? ​@@nickchapsas
@zbaktube
@zbaktube Ай бұрын
Brothers in ARMs 🙂
@joaogabrielv.m328
@joaogabrielv.m328 Ай бұрын
Badunts
@emielregis385
@emielregis385 Ай бұрын
It's evolving, just backwards
@carlinhos10002
@carlinhos10002 Ай бұрын
That would be terrible for those mac servers
@DynotoeTube
@DynotoeTube Ай бұрын
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!!
@ryan-heath
@ryan-heath Ай бұрын
4:25 casually flaunting his 32 hyper cpu cores 😂👌
@anshu5345
@anshu5345 Ай бұрын
and a 4090
@99aabbccddeeff
@99aabbccddeeff Ай бұрын
Thank you for staying on top of everything happening in the .NET world!
@RiddleTime
@RiddleTime Ай бұрын
4:50 love your honesty haha. Great videos as usual :)
@andrewshirley9240
@andrewshirley9240 Ай бұрын
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 Ай бұрын
apropos performance, I have wondered why Nick did not make a video about general perf features e.g. DevDrive on Windows 11
@MatinDevs
@MatinDevs Ай бұрын
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 Ай бұрын
They will drop maui, ms doesn't use it, so it is doomed
@Tsunami14
@Tsunami14 Ай бұрын
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 Ай бұрын
jsuarezruiz is working on a fork for Linux for some time now.
@ErazerPT
@ErazerPT Ай бұрын
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 Ай бұрын
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.
@georgebelletty7861
@georgebelletty7861 Ай бұрын
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 Ай бұрын
Absolutely not. Stick with LTS releases for production, especially if you're a small team.
@jimfoye1055
@jimfoye1055 Ай бұрын
No, it's going to be a pointless release, like 7.
@rosepainting8775
@rosepainting8775 Ай бұрын
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?
@manchastyle
@manchastyle Ай бұрын
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?
@F1nalspace
@F1nalspace Ай бұрын
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.
@Kitulous
@Kitulous Ай бұрын
is this a macos problem or an apple silicon problem exactly? someone try this with an intel mac on macos
@Miles7000
@Miles7000 Ай бұрын
Hello, when will available tutorials about Blazor web in Dometrain??
@ManderO9
@ManderO9 Ай бұрын
lists go brrrr, lmao, what a project name.
@joseduque2406
@joseduque2406 Ай бұрын
Hahaha I use the same logic when buying a new laptop 😂 you work hard man, why not treat yourself with a awesome MacBook.
@desertfish74
@desertfish74 Ай бұрын
ListsGoBrrrrrrrrr
@zfold4702
@zfold4702 Ай бұрын
Waiting for Benchmark training
@nikolayrogchev9628
@nikolayrogchev9628 Ай бұрын
The namespace ... hahah
@BasvanderVeeken
@BasvanderVeeken Ай бұрын
There wasn't an improvement in .NET 9 on the test. Just the order was different, first both .NET 8 and then 9.
@danda-dandic
@danda-dandic Ай бұрын
Lists go brrr :D
@iSoldat
@iSoldat Ай бұрын
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.
@anilkumarpelluri3795
@anilkumarpelluri3795 Ай бұрын
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
@sebastianwhiffen9594
@sebastianwhiffen9594 Ай бұрын
ListsGoBrrr namespace lmao
@amitkumdixit
@amitkumdixit Ай бұрын
This is not a correct benchmark. Since most of these apps will be deployed on a Linux server.
@Tony-dp1rl
@Tony-dp1rl Ай бұрын
It has evolved ... into an animal that cannot run as fast ... lol
@soonhongng7037
@soonhongng7037 Ай бұрын
blud is try to justify himself XDDDD respect
@IllllllllIlIIIIIII
@IllllllllIlIIIIIII Ай бұрын
eurgh, that new ui looks so bad :/
@IgorSodre-kx7iq
@IgorSodre-kx7iq Ай бұрын
What the F. Comment section is full of strange bots.
@guiorgy
@guiorgy Ай бұрын
Insert the "First time?" meme here
@IgorSodre-kx7iq
@IgorSodre-kx7iq Ай бұрын
@@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.
@antosha2224
@antosha2224 Ай бұрын
does it really matter? this issue is only about macos local environments...
@nickchapsas
@nickchapsas Ай бұрын
This time it's on macos next time is on linux x64. The main learning of this issue still matters
@LilPozzer
@LilPozzer Ай бұрын
the first one, like PLSSSS
@Roddles
@Roddles Ай бұрын
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
Рет қаралды 43 М.
"I Lost a Job Because of This Codebase"
14:08
Nick Chapsas
Рет қаралды 29 М.
OMG🤪 #tiktok #shorts #potapova_blog
00:50
Potapova_blog
Рет қаралды 12 МЛН
Они убрались очень быстро!
00:40
Аришнев
Рет қаралды 3,3 МЛН
Don't Use Polly in .NET Directly. Use this instead!
14:58
Nick Chapsas
Рет қаралды 43 М.
NVIDIA CEO says Don't Learn to Code ... why?
27:12
Stefan Mischook
Рет қаралды 154 М.
"The readonly Keyword Is Useless!" | Code Cop #012
9:42
Nick Chapsas
Рет қаралды 35 М.
Understanding B-Trees: The Data Structure Behind Modern Databases
12:39
What's New with WinForms in .NET 9? | OD537
59:39
Microsoft Developer
Рет қаралды 8 М.
"Stop Using Singletons in .NET!" | Code Cop #009
13:52
Nick Chapsas
Рет қаралды 75 М.
Make Your LINQ Up to 10x Faster!
11:08
Nick Chapsas
Рет қаралды 53 М.
host ALL your AI locally
24:20
NetworkChuck
Рет қаралды 746 М.
3 .NET "Best Practices" I Changed My Mind About
10:16
Nick Chapsas
Рет қаралды 100 М.
OMG🤪 #tiktok #shorts #potapova_blog
00:50
Potapova_blog
Рет қаралды 12 МЛН