Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
And after a long journey, Conan discovered that the secret of C is not the compiler.
-
.NET performance was already impressive, nice to see it's getting even better.
@Fast-Nop for web applications, the way .NET is doing it is much nicer. And it's great to have actually impressive performance as well. I would never (ever) want to do backend work in C/C++. -
@RememberMe Uh ok yeah that's a point. Though I do wonder how it would perform. Stuff like Nginx is in C, and the reason why Nginx is popular is because it's fast.
-
@Fast-Nop nginx is a web server only, it only routes your data around. .NET is meant for whole backends with application and business logic and database interfaces and everything. They're not comparable (yes you could probably write a .NET application to do what nginx does but it'd be kind pointless). Actually it would be good to use .NET with nginx sitting in front of it as a reverse proxy.
-
@RememberMe Basically, it would be faster to write it in C, but it would also be unfeasible in terms of security and cost.
-
hjk10156963y@Fast-Nop The reason nginx is fast is not the language it was written in but the design. Anything with a runtime will have a larger memory footprint and it can be optimized a bit further in C but if you look at PHP workerman benchmarks you see that handling HTTP in a scripting language can be ridiculously fast.
-
@LotsOfCaffeine That's about right.
It's more like "Things go Brrrrrr".
My fav is base64 encoding. tested on 10.000.000 caracters.
.Net 4.8 : 220MB of RAM
.Net 6 : less than 1 KB -
But they STILL don't get that JSON must be fast (yes), but EASY to write !
Thier "super mega fast" thing requires like 5 code lines to deserialize an object.
I'll stay with newtonsoft.Json, thank you.
FINALLY.
https://devblogs.microsoft.com/dotn...
In 6 month ready to challange C and C++ on performance vs time.
rant