Slow performance with big project

Issue #33 resolved
Former user created an issue

First of all, thank you for this extension which I use almost every day.

I encounter a problem with big projects (> 7000 unit). Its become very slow and impossible to use (with full cpu usage). Currently I use the following workaround: limit the number of folder by changing the vscode setting "files.exclude".

Can you improve this ?

Comments (6)

  1. Christopher Wosinski repo owner

    First of all I'm glad you like OmniPascal. Second, version 0.12 (coming in January) will bring some major performance improvements. Start up will be much faster. OmniPascal creates an index of all units in the search path in order to find units quickly. In huge projects this can take more than a minute in the current version. The internal builds do the same in a couple of seconds. Also loading code completion will perform much faster especially on multi core machines. There are some "unlucky" implementations slowing down the entire user experience. Most of them will be fixed with the next version.

    Currently I use the following workaround: limit the number of folder by changing the vscode setting "files.exclude".

    Hmm.. that seems to be a different problem. That setting controls the behavior of VSCode only. It just controls the folders used for quick open and file search. You may have more problems with VSCode than with OmniPascal. What exactly is impossible to use? What are you trying to do that takes way too much time?

    If you're not using the latest version of VSCode you should definitely update. File search in huge projects has improved a lot recently.

  2. zabel-xyz

    I use the latest version of VSCode.

    I have bad performances when starting (full cpu usage during a long time) (Hopefully the version 0.12 will fix this).

    Other problem: go-to-definition doesn't work anymore or works too slow (when I am typing something else, suddenly it jump to another file...) With the workaround, it seems to work better...

  3. Christopher Wosinski repo owner

    Version 0.12.0 has been released. Please update and tell me if the problem remains. In that case I would need more information about your setup.

  4. Log in to comment