Skip to content
This repository was archived by the owner on Apr 14, 2022. It is now read-only.

Autocompleting pandas. uses 1/2 GB of memory #1128

Closed
memeplex opened this issue May 25, 2019 · 6 comments
Closed

Autocompleting pandas. uses 1/2 GB of memory #1128

memeplex opened this issue May 25, 2019 · 6 comments
Labels
duplicate This issue or pull request already exists

Comments

@memeplex
Copy link

memeplex commented May 25, 2019

I just did a clean launch of vscode and tried to autocomplete pandas. as shown in the screenshot:

image

Memory usage is absurdly high. I can easily reproduce this by repeating the same steps.

I'm using:

  1. Arch Linux, everything up to date.
  2. Code 1.34.0
  3. Python Extension 2019.4.12954
  4. Python Language Server from the beta channel (I updated it minutes ago).
  5. Python 3.7.3
@memeplex
Copy link
Author

Also, each time I restart code it takes a long time to re-analyze everything (and reload everything into memory!), it's like it doesn't cache anything between sessions and has a long initialization time.

@memeplex
Copy link
Author

memeplex commented May 25, 2019

Compare with jedi:

  • It's using less than 200MB with both numpy and pandas imported.
  • Startup latency is less than 10 seconds (vs 40 seconds to 1 minute).

@MikhailArkhipov
Copy link

Caching is part of #472. Considering memory, Jedi is only for completions. Rename is handled by rope, symbols by ctags and linting by pylint. LS actually combines them all. 500 MB is not particularly different from other comparable engines.

@MikhailArkhipov MikhailArkhipov added the duplicate This issue or pull request already exists label May 25, 2019
@MikhailArkhipov
Copy link

Since we have #832, folding into #472 for caching.

@memeplex
Copy link
Author

Fair enough, thanks for explaining. When I disable Jedi in my settings, does it mean that everything else you listed above is disabled also so that pls takes care of everything?

@MikhailArkhipov
Copy link

MikhailArkhipov commented May 25, 2019

Yes, LS takes over the entire editor. Pylint may still be activated since LS linting is not yet as complete.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants