You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am building a DSL for blazor with CE, but we find that when the code line grows to just 300 the performance is going to be noticable. If we got more logic or more lines it is almost no intellicense because it is too slow.
TBH this is somewhat expected as things stand - the de-sugaring of CEs can lead to m=plenty of method resolutions and it's not to be taken for granted that it allows very large CE expressions without some penalty in diagnostics and compilation times.
I'd encourage you to consider this when assessing whether the CE technique is suitable for your DSLs. We can aim to continue to improve compilation times for this, and I'd strongly encourage you to do a profiling run - which would probably quickly determine some low hanging fruit on this path. However there should be no real expectation that using CEs on very large inputs will be free of some downsides - it's in their nature.
Maybe we should add this to CE docs to let people know its not suitable for large DSL instead of after we spend many times then find out it is not a suitable way. :(
Activity
albertwoo commentedon Feb 13, 2022
Related issue: slaveOftime/Fun.Blazor#24
dsyme commentedon Feb 16, 2022
TBH this is somewhat expected as things stand - the de-sugaring of CEs can lead to m=plenty of method resolutions and it's not to be taken for granted that it allows very large CE expressions without some penalty in diagnostics and compilation times.
I'd encourage you to consider this when assessing whether the CE technique is suitable for your DSLs. We can aim to continue to improve compilation times for this, and I'd strongly encourage you to do a profiling run - which would probably quickly determine some low hanging fruit on this path. However there should be no real expectation that using CEs on very large inputs will be free of some downsides - it's in their nature.
albertwoo commentedon Feb 17, 2022
Maybe we should add this to CE docs to let people know its not suitable for large DSL instead of after we spend many times then find out it is not a suitable way. :(
albertwoo commentedon Mar 16, 2022
Compared with 16.11.3 and 17.0.6.
16.11.3 is faster and more reliable, in 17.0.6, it is very easy to make the VS crash when the code grows.
The IDE will crash for just 300 lines of CE expression in 17.0.6.
Can we improve CE performance for codes under 500 lines?
vzarytovskii commentedon Nov 10, 2023
Let's track this one in #14429, since it has much more info.