Conversation
A varredura guarda um identificador por arquivo, para o hard link somar uma vez, e cada nome de arquivo diferente. Com HashSet, cada item custava cerca de 20 bytes e o nome era criado antes de saber se ja existia. Agora cada faixa e uma tabela aberta de 8 bytes por posicao, e o nome so e criado quando e novo. Autores: Manfred Heil Junior
Comprimido, o .exe tinha 67 MB, mas o .NET descomprimia as bibliotecas na memoria ao abrir, cerca de 80 MB a mais. Sem compressao, o .exe tem 149 MB e o pico de uma varredura com 1,1 milhao de arquivos fica entre 250 e 260 MB, dentro da meta. Decisao do Manfred em 01/10/2026. A janela segue acima da meta e fica registrada nas pendencias. Autores: Manfred Heil Junior
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
O que muda
.exesem compressão, por decisão do Manfred em 01/10/2026..exetinha 67 MB, mas o .NET descomprimia as bibliotecas na memória ao abrir..exetem cerca de 149 MB, e a memória cai uns 80 MB.Medidas
Medidas num disco com 1,1 milhão de arquivos, só com varredura, sem ação nenhuma.
Como testar
.execomferramentas\publicar.cmd. Ele fica com cerca de 149 MB.powershell -File ferramentas\medir-memoria.ps1 C:e conferir o pico.Autores: Manfred Heil Junior