Coder Social home page Coder Social logo

Comments (6)

andymass avatar andymass commented on June 12, 2024

match-up is already using lazy loading, one problem is that it really does need to be loaded at buffer load since highlighting is a core feature. If you start it on % press, you'd miss the highlighting.

Can you provide any startup time logs so I can see where the improvements might be?

from vim-matchup.

gennaro-tedesco avatar gennaro-tedesco commented on June 12, 2024

Sure, would you like me to run nvim --startuptime tmp.txt and attach the file or anything else (also, do you need part of the file in particular or the whole lot)?

from vim-matchup.

andymass avatar andymass commented on June 12, 2024

Yeah, I can work with the whole startuptime file, if you are able to share that. Ideally it would show the 300 ms is coming from to help me debug.

For comparison the entire match-up load takes under 5ms on my computer

from vim-matchup.

gennaro-tedesco avatar gennaro-tedesco commented on June 12, 2024

Please find attached the startup logs

tmp.txt

P. S. I am using lazy.nvim as package manager and on start-up I see the below:

Screenshot 2023-11-11 at 22 01 03

which seems to be closer to the actual time I feel for start-up to take.

P. P. S. I have now accidentally noticed (by using another computer where I don't run nightly) that such problem doesn't exist with nvim --version 0.9, it is instead accentuated on nightly where I have observed treesitter to take a longer startup time than expected, en passant. Hence this may be due to possible treesitter dependencies within the plugin?

from vim-matchup.

andymass avatar andymass commented on June 12, 2024

problem doesn't exist with nvim --version 0.9

Might explain why it works on my side

BTW as another sanity check, what happens when you don't lazy load and instead load using normal methods,; vim-matchup has an autoload system already, maybe lazy.nvim is messing with that?

from vim-matchup.

gennaro-tedesco avatar gennaro-tedesco commented on June 12, 2024

what happens when you don't lazy load and instead load using normal methods

The above numbers are obtained without any lazy loading, even removing the event BufReadPost (which after all doesn't change much anyway). I am led to think that this may in truth due to treesitter alone, especially given that there are no other issues of users noticing it throughout the history of this plugin (which means that the plugin itself is very good and does most if not anything right already :) )

from vim-matchup.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.