Comments (4)
This blog seems useful: https://www.liranchen.com/2010/08/forcing-jit-compilation-during-runtime.html
I don't believe using ngen works with .net core. Ok, this seems most ideal: It seems that the project can be published with "PublishReadyToRun" set to true: https://codetherapist.com/blog/netconf-netcore3-crossgen/ (that will require building on the platforms, which is not a big deal... just use a matrix on the CI)
More reading: https://devblogs.microsoft.com/dotnet/announcing-net-core-3-0-preview-6/
from dprint-plugin-roslyn.
- The "PublishReadyToRun" did basically nothing for startup time.
- The "forcing JIT compilation" didn't work in .net core. Got a
PlatformNotSupported
exception callingRuntimeHelpers.PrepareMethod
- Formatting some dummy code first worked, but startup times are still way to slow. In the editor when a file is being saved there's too much of a delay. I think an AOT solution is necessary... looking into CoreRT right now.
from dprint-plugin-roslyn.
CoreRT doesn't seem stable enough at the moment and I haven't found any other solution that works. Not going to do this for now and instead will implement dprint/dprint#284
from dprint-plugin-roslyn.
Explanation on why CoreRT didn't work is here: dotnet/corert#8202 (comment)
Roslyn has infinite recursive expansion around Microsoft.CodeAnalysis.VisualBasic.TypeArgumentInference.StronglyConnectedComponent ...
If you see the compiler not making progress and consuming a lot of memory, it is pretty much always infinite generic expansion. We know that we need a better error reporting for it.
from dprint-plugin-roslyn.
Related Issues (6)
- Doesn't work on linux HOT 1
- Another Mac M1 issue HOT 4
- Can't set indent width HOT 1
- Mac M1 Issues HOT 16
- Automatic updates
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dprint-plugin-roslyn.