sourcery-ai / sourcery-vscode

VS Code extension for Sourcery
MIT License
84 stars 11 forks source link

Very slow extension activation time #171

Closed xshapira closed 1 year ago

xshapira commented 1 year ago

In the past few days, I have noticed a very slow activation time of Sourcery—1370ms.

CleanShot 2023-06-22 at 19 37 26@2x
reka commented 1 year ago

Thanks a lot for reporting this. :+1: It's very slow indeed.

Can you give some info about your system?

Does this lead to a noticeable delay or hanging? Or is this long activation time visible only on the "Running Extensions" tab?

xshapira commented 1 year ago

I haven't seen any big slowdowns, but I'm sure it impacts some places.

cpoptic commented 1 year ago

+1 If you run Developer: Show Running Extensions in the VS Code command palette, Sourcery 1.4.0 is (by far) the longest loading VS Code extension. Mine is showing 8212 ms! 8.2 seconds. For comparison, the next slowest loading extension, Pylance is only 1135 ms. So 8x slower than the 2nd slowest extension.

How can we reduce the extension loading time? This is way too long of load time.

Hellebore commented 1 year ago

Am looking into addressing this.

Hellebore commented 1 year ago

@cpoptic @xshapira could you please install the latest version (1.5.0) and check the activation time? Want to make sure we've addressed the issue.

xshapira commented 1 year ago

Fixed. Great job guys!

CleanShot 2023-06-30 at 11 04 38@2x