-
Notifications
You must be signed in to change notification settings - Fork 765
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Long delay of suggestion list update with scikit-learn #4016
Comments
Also reproduced on:
|
I looked the log. the delay it shows is expected. most of work it was doing was parsing/binding. that are one time cost per a file when they are used the first time. your particular code touched a lot of files transitively (a lot of nested imports inside of the sklearn) so all those files are needed to be read/parsed and bound. but once that are done, things are fast. you can confirm that, by typing this from sklearn import linear_model
model = linear_model.LinearRegression()
model.f and wait until completion shows up like you did in the repro steps. and then delete everything and retype again. the second time should be fast since all necessary files are already brought in and cached. |
if it still happens when you retype, please provide us logs for the retype case as well so we can take a look what is taking the time. |
I reproed. it wasn't actually completion that is slow. it was getting tooltip for some particular items in the completion taking long time when it is selected by default when completion was shown. such as if the item selected by default happen to be a cheap one to calculate tooltip such as anyway, now taking a look to see why those are taking long time (and see why cancellation didn't kick in) |
In case someone still need the logs: https://paste.ubuntu.com/p/DpGqMQHW5j/ |
thank you @wangtz0607 @erictraut can you take a look? this is a similar issue with #3978 from sklearn import linear_model
model = linear_model.LinearRegression()
model. <= completion here repro step is opening a completion at I attached the log below that shows code flow when we try getting the tooltip.
the log is with this option
and now why anyway, that's why the cancellation seems not working for |
merging all issues about scikit-learn to #3978 |
Environment data
Code Snippet
Expected behavior
The suggestion list updates immediately as I type.
Actual behavior
Logs
https://paste.ubuntu.com/p/wf9HZJdckR/
The text was updated successfully, but these errors were encountered: