Ramilito / kubectl.nvim

⎈ Streamline your Kubernetes management within Neovim—control and monitor your cluster seamlessly, all without leaving your coding environment.
Apache License 2.0
325 stars 9 forks source link

fix: flickering colors #264

Closed Ramilito closed 2 months ago

Ramilito commented 2 months ago

Seems to be a bad idea to schedule extmarks in favor of faster data to the reader since it will cause flickering in colors as mentioned #262.

Bonus:

mosheavni commented 2 months ago

Amazing How did you calculate the benchmark of pretty print?

Ramilito commented 2 months ago

Amazing How did you calculate the benchmark of pretty print?

I'm using two ways, the easiest is just to use the timeme utility we have in utils/timeme.lua and surround a function with

timeme.start()
.....
timeme.stop()

This just prints out the time in seconds and works great when you know where you need to improve.

The second way is how I usually start from, using the plugin: "stevearc/profile.nvim" It gives me this view:

Before: image

After: image

mosheavni commented 2 months ago

Awesome! I'll start using that on my PRs :) thank you for the detailed explanation.

Ramilito commented 2 months ago

I'm hoping this solves the flickering and gives us a snappier ui!