PowerShell / PowerShell/PSScriptAnalyzer
PSSA should be crossgen'd
Nessuno ha ancora preso questa issue.
- Lingua principale
- C#
- Stelle
- 2.2k
- Fork
- 414
- Merge medio
- 13h 1m
- PR unite (30g)
- 2
Descrizione
Doing some perf tests and there's a large impact to the first time PSSA.dll is loaded due to JIT.
However, after the initial JIT, execution time is MUCH faster. But for cases where PSSA is invoked just once, it's a huge cost without savings as the JIT is only in memory until the process goes away.
These times are for using PSSA recursively against all scripts in PowerShell repo:
| PowerShell | dotnet | cold start (JIT) | warm start |
|---|---|---|---|
| WinPS 5.1 | .Net 4.7.1 | 111s | 18.6s |
| PSCore6 | .NetCore2.1 | 105s | 16.4s |
| PSCore6 | .NetCore2.1+Tiered | 90s | 16.8s |
Tiered is a new opt-in compilation feature of dotnetcore2.1 that balances startup and runtime optimizations.
My conclusion is that we should crossgen (coreclr) and ngen (fullclr) assemblies.
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia con PSSA.dll e i requisiti segnalati di CoreCLR crossgen e FullCLR ngen. Riproduci il confronto tra avvio a freddo e avvio a caldo, quindi verifica che gli assembly pertinenti siano precompilati e che il costo di avvio una tantum migliori.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- csharp, powershell
- Ambito
- performance, tooling
- Tipo di issue
- Funzionalità
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100