Slower with version 1.16

Issue #96 open
zabel-xyz created an issue

With version 1.15 all worked fine.

After updated to version 1.16. It's slower. Now F12 (goto declaration) takes a few minutes to find declaration, before it was almost instantaneous.

I use this extension with big projects (> 7000 unit). I use multi-workspaces, but only 1 workspace with delphi sources.

For now I reinstall previous version 1.15.

What can I do ?

Comments (4)

  1. Christopher Wosinski repo owner

    In version 1.16 a new symbol index was introduced. At startup OmniPascal scans all Pascal files in background in order to provide suggestions about missing uses statements. The scanning process is supposed to work in background so that OmniPascal will stay responsive. Unfortunately it doesn't always work that way and OmniPascal seems to be dead until the scanning is done. I hope I'll get that fixed soon.

    Your workspace is quite huge. Scanning 7000 units may take some time. The very first run will take longer than later attempts because OmniPascal creates a file based symbol cache. In case the startup still takes a long time then you might want to turn off symbol index in this specific workspace until the issue has been fixed (see the setting omnipascal.symbolIndex).

    P.S. Sorry for the late response. Sometimes Bitbucket doesn't send me notifications about new issues.

  2. zabel-xyz reporter

    I try with version 1.17, no improvement. I try with setting "omnipascal.symbolIndex": "off" but this don't change anything.

    Can we specify a workspaceFolder or a specific path, because only 1 workspaceFolder contains delphi source ?

    For now I return to version 1.15...

  3. Christopher Wosinski repo owner

    There's currently no option to exclude specific paths in workspace. Does OmniPascal work faster if you only open the folder which contains the Delphi sources (no multi-folder-workspace, no unnecessary folders inside the workspace)?

  4. Log in to comment