Friedrich von Never

Results 589 comments of Friedrich von Never

I still suggest profiling the application.

## Regarding the slow message processing I still have no clue. Does it reproduce without MAUI, in a simple console app you'd be able to share? ## Regarding the CPU...

My guess would be that tdsharp is relying on global synchronization context somehow (this is obvious global difference between console and MAUI app). I think I've cleaned it all up...

Wow, that's unusual. Perhaps you had a lot of traffic, and logging took a significant amount of time? Even though the logs are usually going nowhere in a UI application....

You use that in a GUI app with no console, right?

I wasn't still able to reproduce the issue. I guess at this stage someone has to upload a public source snippet for us to reproduce this, so we'll be able...

Ok, I'll try to take a look at the weekend.

@antonGritsenko, your program (or at least the version which is slow) seems to use `GetAwaiter().GetResult()` a lot. And also, there's a lot of `async void`, which I cannot approve. Most...

No it is not, and I forbid you to use `async void` in any context. Just don't. It is bad.

Yes, it can, but from this profile, it looks like a native memory leak. So, unfortunately, you'll have to profile the underlying tdlib, and not the managed part. (though it's...