Home Compile c# .net async without async
Reply: 0

Compile c# .net async without async

Jason Coyne
Jason Coyne Published in 2018-02-12 17:08:07Z

We have an application which has been written with async/await. There are some problems, the profiler we use does not support async, some other tools also have some issues.

We would like to compare our performance/scalability with and without async. Its mostly straightforward to make a branch and just search and replace all of the async stuff away. But it would be even cleaner if we could set a complier flag or something to turn async off. (Eg, don't generate the state machine)

Is this possible? Is there any other way to easily switch between async/non-async versions? (Perhaps a plugin that will swap all the code in and out?)

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.300644 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO