Omar
Omar
CC#
Created by Omar on 12/28/2024 in #help
Surprising performance problem under debugger
If the code in the debugger is 20 or 30% slower, that seems fine. But 100x slower is just terrible, and very unexpected.
13 replies
CC#
Created by Omar on 12/28/2024 in #help
Surprising performance problem under debugger
I thought that could be done with C# apps too, to see the IL. But I can't get it to happen.
13 replies
CC#
Created by Omar on 12/28/2024 in #help
Surprising performance problem under debugger
Back in managed code, it was trivial to open the "View Disassembly" window i nthe debuger to see what code was being actually executed when debugging C or C++ apps.
13 replies
CC#
Created by Omar on 12/28/2024 in #help
Surprising performance problem under debugger
Anything I read says that IL is never executed directly, so there's still some compilation going on.
13 replies
CC#
Created by Omar on 12/28/2024 in #help
Surprising performance problem under debugger
I've never noticed it being so slow before.
13 replies
CC#
Created by Omar on 12/28/2024 in #help
Surprising performance problem under debugger
No conditional breakpoints. So without JIT it's just running IL?
13 replies
CC#
Created by Omar on 9/3/2023 in #help
❔ Why is C# so slow on Linux? How can I speed it up?
Yep, because startup of even a trivial app was taking more than two seconds. Profiling my own app, in its short-run case, takes just as long.
100 replies
CC#
Created by Omar on 9/3/2023 in #help
❔ Why is C# so slow on Linux? How can I speed it up?
It'll probably be another 6 months before we have a chance at upgrading the fleet, but I have a few things to try until then so thanks for that.
100 replies
CC#
Created by Omar on 9/3/2023 in #help
❔ Why is C# so slow on Linux? How can I speed it up?
AOT is fast enough, but it would only help for about 30% of our fleet.
100 replies
CC#
Created by Omar on 9/3/2023 in #help
❔ Why is C# so slow on Linux? How can I speed it up?
native aot doesn't work on my primary OS. I mentioned this above.
100 replies
CC#
Created by Omar on 9/3/2023 in #help
❔ Why is C# so slow on Linux? How can I speed it up?
Yep, 75 ms. It's almost twice that.
100 replies
CC#
Created by Omar on 9/3/2023 in #help
❔ Why is C# so slow on Linux? How can I speed it up?
to my standards?
100 replies
CC#
Created by Omar on 9/3/2023 in #help
❔ Why is C# so slow on Linux? How can I speed it up?
I'm wondering if the industry is in decline because people expect bad performance, and expect that very common platforms are unsupported.
100 replies
CC#
Created by Omar on 9/3/2023 in #help
❔ Why is C# so slow on Linux? How can I speed it up?
The problem is that there's a significant cost to starting up a dotnet app. Sorry, I thought I had made that clear before. Maybe another problem is that you're apathetic to the issue.
100 replies
CC#
Created by Omar on 9/3/2023 in #help
❔ Why is C# so slow on Linux? How can I speed it up?
Maybe you wouldn't, but I don't see how that addresses this problem.
100 replies
CC#
Created by Omar on 9/3/2023 in #help
❔ Why is C# so slow on Linux? How can I speed it up?
Shell script?
100 replies
CC#
Created by Omar on 9/3/2023 in #help
❔ Why is C# so slow on Linux? How can I speed it up?
Sure, if refactoring large systems was free, we'd already have done that. Fact is, we're in the midst of rearchitecting a large legacy system. Maybe one day it'll be a full-blown service, but until then we run a process against available input in batches.
100 replies
CC#
Created by Omar on 9/3/2023 in #help
❔ Why is C# so slow on Linux? How can I speed it up?
I thiiiiink I've done the math right, but we'd need it to be less than 75 milliseconds to not be an issue.
100 replies
CC#
Created by Omar on 9/3/2023 in #help
❔ Why is C# so slow on Linux? How can I speed it up?
I think the service script is spawning dotnet run, so it'll certainly help to directly run the image. The startup time is still a bit of a concern.
100 replies
CC#
Created by Omar on 9/3/2023 in #help
❔ Why is C# so slow on Linux? How can I speed it up?
I'm not normally ocncerned iwth startup, but when it's so long that it dominates processing time on a small workloads. In actuality, I have a system that runs on some input. Beforehand, we don't know if the input is large or small. If it's large, great -- a 2-seconds startup doesn't matter much becuase processing takes a while. If it's small, then processing takes far less time than startup and we actually end up falling behind.
100 replies