Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

onDidChangeActiveTextEditor causes high CPU #49

Closed
AlencarGabriel opened this issue Dec 28, 2020 · 1 comment
Closed

onDidChangeActiveTextEditor causes high CPU #49

AlencarGabriel opened this issue Dec 28, 2020 · 1 comment
Labels
Awaiting Release Aguardando lançamento da versão Performance Issues relacionadas a performance da extensão

Comments

@AlencarGabriel
Copy link
Owner

Identificado que ao abrir arquivos grandes, a extensão está processando todas as funções do evento onDidChangeActiveTextEditor porém mesmo que não seja em um arquivo AdvPL suportado (exemplo arquivo pós gerado fontes do RPO).

exthost-d93e8e.txt (renomear para .cpuprofile)

Será necessário tratar nas funções/métodos para que estes não executem caso não seja um arquivo AdvPL válido.

@AlencarGabriel AlencarGabriel added the Performance Issues relacionadas a performance da extensão label Dec 28, 2020
@AlencarGabriel AlencarGabriel changed the title onDidChangeActiveTextEditor causes hight CPU onDidChangeActiveTextEditor causes high CPU Dec 28, 2020
@AlencarGabriel AlencarGabriel added the Awaiting Release Aguardando lançamento da versão label Dec 29, 2020
@AlencarGabriel
Copy link
Owner Author

Correção aplicada na versão 0.7.4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Release Aguardando lançamento da versão Performance Issues relacionadas a performance da extensão
Projects
None yet
Development

No branches or pull requests

1 participant