Comments (6)
In #63 I eliminate an OffsetToPosition
call: 7838269#diff-5127272f84a6dcfaad20fe14dc66437f542846b096fd7c41cdc9817a9ee23aacL145
However, locally testing, seems like the rendering is still slow. I'm not sure what work in the function is still O(N) though. I'm assuming you still experience the slowdown as well?
codeium.vim/autoload/codeium.vim
Lines 132 to 237 in 7838269
from codeium.vim.
I just tested it and now it take some time to load suggestions, but once response is ready, I can quickly switch between suggestions. So at least this part is fixed.
When Codeium is enabled on large file, I still see some slowness (short blocking) when I just type. It's probably related to remaining call which calculates cursor_offset - codeium#util#PositionToOffset('.', '.')
Maybe you could consider adding to language server API, ability to provide line numer + column, instead of absolute offset in whole string? This should remove dependency to this O(N) funciton completely.
from codeium.vim.
I just checked accepting suggestion, and it has the same long delay.
from codeium.vim.
I've made some optimizations in #69, curious to see how your case behaves now.
from codeium.vim.
It is at least few times faster. Thanks!
from codeium.vim.
Great, I'll close this for now. One other place which is still O(N) is assembling the full document from the lines. Not sure if that's avoidable though -- in at least Neovim the buffer is stored as an array of lines according to this Reddit comment.
from codeium.vim.
Related Issues (20)
- Plugin conflict with Grep Console HOT 9
- Configure listen address for chat HOT 3
- Auth fail E488: Trailing characters: curl (6) Could not resolve host: application^@
- Codeium just stopped working HOT 5
- bug: commit `decfb54` breaks codeium.vim in nvim HOT 32
- codeium.vim makes NeoVim laggy and unresponsive HOT 1
- Codeium does not work affter auth HOT 1
- What s happen ?? HOT 8
- I got error as a AcceptNextLine in insert mode HOT 11
- Partial completions (single word or line) make unnecessary completion requests HOT 1
- Error detected while processing function codeium#Accept HOT 7
- help
- The latest version always show '*' status HOT 2
- Not shows the suggest HOT 3
- Authentication does not work depending on .zshenv? HOT 2
- Language server failed - read /xxx/yyy: is a directory HOT 2
- Right arrow = Tab? HOT 15
- Improve docs for installation options HOT 2
- Commit: `c2bcccd9348fe0a45f39ed56df64a0f3bb309c4f` breaks codeium on Neovim HOT 3
- codeium doesn't work in vim , breaks rightarrow move in insert mode HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from codeium.vim.