Spyder: High CPU from Kite, Spyder lags when typing

Created on 20 Sep 2019  路  5Comments  路  Source: spyder-ide/spyder

Problem Description

User quickly types requests.post() on keyboard, but on screen chars show up one by one (see many calls in terminal, kite engine is >100%).

What steps reproduce the problem?

  1. While in debug mode
  2. Types requests.post() really quickly
  3. See video: https://www.dropbox.com/s/ux28c7o5r6oieis/kite_lag_spyder_requests_.mov?dl=0

What is the expected output? What do you see instead?

Keystrokes should match typing speed.

Paste Traceback/Error Below (if applicable)

Versions

  • Spyder version: latest Spyder beta
  • Python version:
  • Qt version:
  • PyQt version:
  • Operating System name/version:
Code Completion Bug

All 5 comments

@metalogical, @its-dhung, can you reproduce this one? If so, do you know what's happening here?

I've also seen lag while editing code. My guess is that the completions request logic blocks the UI until a response is received? I could be wrong here though since I'm not very familiar with that part of the codebase, so please let me know if that isn't the case.

Ok, I think @andfoy added some lockers to avoid interference with the LSP, but this could be solved after making Kite to take over the LSP instead.

This may not have anything to do with Kite; I noticed this lag too in beta 5 (the latest Spyder beta at the time this was posted that @plungg appears to ambiguously be referring to), and I have never had Kite installed nor do I have any interest in ever doing so. It seemed to be a result of regular on-the-fly completion; with the changes that were implemented as a result of #10134 to add an idle and character delay as well as not try to complete in inappropriate places, the lag has all but vanished for me in dev builds and beta 6 and the UX is way better.

This is a duplicate of issue #10457.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

danieltomasz picture danieltomasz  路  3Comments

hedeqing picture hedeqing  路  3Comments

JesterEE picture JesterEE  路  3Comments

impact27 picture impact27  路  3Comments

marianux picture marianux  路  3Comments