PowerShell / PowerShell/PSScriptAnalyzer
PSSA should be crossgen'd
Ninguém assumiu esta issue ainda.
- Linguagem predominante
- C#
- Estrelas
- 2.2k
- Forks
- 415
- Merge médio
- 13h 1min
- PRs com merge (30d)
- 2
Descrição
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.
Guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Direção de pesquisa
Comece com PSSA.dll e os requisitos relatados de CoreCLR crossgen e FullCLR ngen. Reproduza a comparação entre inicialização a frio e a quente e, em seguida, verifique se os assemblies relevantes estão pré-compilados e se o custo de inicialização único melhora.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Stack de tecnologia
- csharp, powershell
- Domínio
- performance, tooling
- Tipo de issue
- Funcionalidade
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Status de atividade
- Estagnada
- Clareza
- Razoavelmente clara
- Facilidade para iniciantes
- 35/100