-
Notifications
You must be signed in to change notification settings - Fork 65
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
Consider to render only visible candidates instead of company-box-max-candidates like now #107
Comments
Hi @kiennq, thanks for your comment. I would prefer to not use It has its downsides, I know, such as missing features etc. But I would prefer to keep it this way. All the missing features just need to be implemented, I guess. For performance, that's interesting, I never encounter such issue. Would you please reproduce with the profiler ? |
|
@dgutov Right, it's not based on overlays. But its output is intended to be used in overlays, so it doesn't make use of features available outside of overlay context, unless I am missing something ? @kiennq What other features are you missing that is available with |
|
@dgutov I didn't say
I was talking about the output of the function |
Which features are those? |
@dgutov My point is child frames gives a freedom to the implementation of |
At some point you start to have a lot of duplication in the code. Not using |
Sure, which is why I replied:
I would have just used I don't see many bugs about reimplementing |
@dgutov I agree that |
Hi @sebastiencs, thanks for the great package.
I notice that
company-box
is quite slow, mostly because it has to re-render all of candidates.Would it makes sense to only render visible candidates only?
This will be a huge performance gain, and also removes the restriction of
company-box-max-candidates
too.Also since
company-box
actually do the rendering of the candidate itself, it was missing quite a few properties fromcompany-mode
like matches highlighting forflx
match.Should we drop the
company-box--make-line
and usecompany--create-lines
instead?I've push a commit here kiennq@8f675f7 as POC.
You can try the other improvements in my repo https://github.com/kiennq/company-box/ too.
Let me know if you think this is possible to be merged back to main stream project.
The text was updated successfully, but these errors were encountered: