Bug 59877 - very slow compilation with await and goto
Summary: very slow compilation with await and goto
Status: NEW
Alias: None
Product: Compilers
Classification: Mono
Component: C# (show other bugs)
Version: 5.2 (2017-04)
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Marek Safar
URL:
Depends on:
Blocks:
 
Reported: 2017-09-30 17:31 UTC by Michal Moskal
Modified: 2017-09-30 17:31 UTC (History)
2 users (show)

See Also:
Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
Slow C# file (14.71 KB, text/plain)
2017-09-30 17:31 UTC, Michal Moskal
Details

Description Michal Moskal 2017-09-30 17:31:30 UTC
Created attachment 25046 [details]
Slow C# file

The attached 15k C# file takes over 20s to compile (on a fast laptop).

It is generated from a somewhat convoluted JavaScript example with a bunch of if statements and lazy boolean operators by PXT (https://github.com/Microsoft/pxt/blob/csharp/pxtcompiler/emitter/backcs.ts), which I imagine results in a significant number of paths through the source.

Note You need to log in before you can comment on or make changes to this bug.