Subject Re: dBASE - Source Editor - Totally abnormal CPU usage when dBase is
From Gaetano <gaetanodd@hotmail.com>
Date Fri, 1 Jan 2021 14:11:11 +1000
Newsgroups dbase.getting-started


I have already posted it as a bug, Karen said it's a known problem and
they are narrowing down the cause, so perhaps add any additional comment
under my bug report if you have more info to add that may help narrowing
down the issue.

It feel like it is doing something continuously while the window has
focus, instead of doing whatever it needs to do only "onKey", i.e. when
something actually changes in the editor window.

Perhaps try to deactivate "Syntax Highlighting" - I know it is useful
but if that solves the issue, they might deploy a fix sooner rather than
later :)

On 31/12/2020 23:22, Carlos A. Pereira [APKomp] wrote:
> Yes. Just like that.
> If .prg / wfm / ... has too many lines, we can't even change the code
> because it is very slow.
> I have to edit the code in temporary .prg/... and then copy / paste.
> And Source Editor Properties in "lightweight" configuration (see image)
> This problem worsened markedly with dbase 2019 (13.x)
> If the same file is opened and edited in Notepad++ v 7.x there is no
> problem.
> Captura de ecrã 2020-12-31 131059
> "Gaetano"  escreveu na mensagem news:4w8ALtM0WHA.1876@ip-AC1E04A7...
> This probably belongs to bug reports but I wanted to check if anyone was
> noticing the same pattern before I post it there.
> I was wondering why my computer fan was unusually loud and looked at the
> program manager. dBase 2019 was on top of the list with a **permanent**
> usage of 2.5-3.5% of CPU usage the moment I open a PRG in the source
> editor without doing anything to it, even after minimizing dBase (with
> focus on the Source Editor).
> The usage drops any time the editor loses focus and the CPU cycles
> increase with the size of the PRG file being open:
> 0.5-1% with a small PRG of just 80 lines.
> 2.5-3.5% with an 800-line PRG.
> 11-15% for a PRG of 5000 lines
> 20% for a 20,000 line PRG
> I just copy-pasted the code of the previous file at the end of the PRG
> for the last two samples as I don't have PRG's that large. The CPU usage
> ramped up with every paste operation.
> Give focus to something else, e.g. go to the Navigator, and the CPU
> usage drops to normal idle levels of 0%-0.2%. Give focus back to the
> Source Editor window and the usage goes up again.
> Is anyone else able to reproduce this?