Closed Ramilito closed 2 months ago
Amazing How did you calculate the benchmark of pretty print?
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:
After:
Awesome! I'll start using that on my PRs :) thank you for the detailed explanation.
I'm hoping this solves the flickering and gives us a snappier ui!
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: