C# code very slow with debugger attached; MemoryMappedFile's fault?

后端 未结 2 2021
傲寒
傲寒 2021-02-06 01:25

I have a client/server app. The server component runs, uses WCF in a \'remoting\' fashion (binary formatter, session objects).

If I start the server component and launc

2条回答
  •  無奈伤痛
    2021-02-06 01:58

    Since this is one of the first results when googling for this issue I would like to add my problem solution here in the hopes of saving someone 2 hours of research like in my case.

    My code slowed down from 30 seconds without debugger attached to 4 minutes with debugger. because I forgot to remove a conditional breakpoint. These seem to slow down execution tremendously, so watch out for those

提交回复
热议问题