Git Product home page Git Product logo

Comments (9)

ryanraposo avatar ryanraposo commented on May 20, 2024 1

@ryanraposo I'm still not convinced that extension is needed at startup. It should be activated onView instead of *.

onView it is, then.

from codeui.

usernamehw avatar usernamehw commented on May 20, 2024 1

No change. ~200ms as it was.

Screenshot (365)

from codeui.

ryanraposo avatar ryanraposo commented on May 20, 2024 1

A helpful link:

How to Speed Up Your VS Code Extension by Zhe Li

from codeui.

usernamehw avatar usernamehw commented on May 20, 2024

Developer: Show Running Extensions workbench.action.showRuntimeExtensions

from codeui.

ryanraposo avatar ryanraposo commented on May 20, 2024

Thanks for raising this.

On one hand, there is some justification for it. Most extensions load a lot on the fly. CodeUI does near zero compared to the load when it initializes. All the lifting is in detecting settings and generating hundreds of colored svgs for every element of VS Code. There is a mid-way strategy that's popular, which is to avoid piling more compute into VS Code's launch, and instead waiting until the extension's pane is drawn (for example). CodeUI is the pane and on many setups it would be an ugly load when you toggle the view.

Other hand: I'm pretty subpar at TypeScript. I didn't even know JavaScript when I set out to make this extension. @usernamehw, you write nicer, cleaner TypeScript-- that struck me looking at your PRs for sure. I think I was pretty efficient in a strategic sense but I probably overuse and/or misuse language-specific loops and iteration mechanisms in the init. There might be a lot of room for speed gains, such that a good pass could make the above a total non-issue, I'm really not sure.

Just to piggyback on this Issue, in general @usernamehw if you'd like to take on more responsibility or have some cool milestones in mind that we can reach for, just say the word! If you have anything, you should take the reigns on the plan. My mind is not always in this project, and I find the extension to be great for my uses... but some good ol' dissatisfaction is the right stuff as far as I'm concerned. Better TypeScript is a plus too, but for me, the important thing is just that you think CodeUI is neat enough as a user that you want more for it. I'll be right back to it to help code/plan if you do, guaranteed. Funnest part, and a lot funner than giving it a new hat.

It's in a good, necessary spot just gaining users-- the incoming complaints/missing feature reports are what I'm after before next moves; but by all means, don't wait for them! Thanks again for supporting. Means a lot to me.

from codeui.

usernamehw avatar usernamehw commented on May 20, 2024

@ryanraposo I'm still not convinced that extension is needed at startup. It should be activated onView instead of *.

from codeui.

ryanraposo avatar ryanraposo commented on May 20, 2024

@usernamehw my activation times since switching to onView (454ms). I still agree that deferring away from VS Code launch was the right move.

onview

from codeui.

usernamehw avatar usernamehw commented on May 20, 2024

Maybe it's slower while debugging the extension?

from codeui.

ryanraposo avatar ryanraposo commented on May 20, 2024

@usernamehw could be!

from codeui.

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.