Commit ac319eb
committed
fix(pick)!: increase default
Details:
- Having 10ms as a default ensures the smoothest async experience, since
it results in essentially 100 FPS responsiveness.
However, this is a bit too much for "force redraw during `getchar()`"
and can result into constant 1-2% CPU load just when picker does
nothing. This is the biggest load, but it adds up and can have visible
effect if the picker is left open in the background after switching to
a different process.
- This also makes it "less smooth" of a feeling to type when the picker
is busy. However, should still be good enough while consuming slightly
less resources (due to less frequent checks).
If it causes visible issues, the two more complex solutions here are:
- Add new `config.delay.poke` to separate `async` for redraw and
`check` for throttled poking.
- Make upstream Neovim PR to allow `getchar()` / `getcharstr()` to
not block redraw (at least behind the new option).
Related to #2306config.delay.async from 10 to 1001 parent 0268c18 commit ac319eb
File tree
5 files changed
+17
-8
lines changed- doc
- lua/mini
- readmes
- tests
5 files changed
+17
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
69 | 73 | | |
70 | 74 | | |
71 | 75 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
207 | 207 | | |
208 | 208 | | |
209 | 209 | | |
| 210 | + | |
210 | 211 | | |
211 | 212 | | |
212 | 213 | | |
| |||
707 | 708 | | |
708 | 709 | | |
709 | 710 | | |
710 | | - | |
| 711 | + | |
711 | 712 | | |
712 | 713 | | |
713 | 714 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
203 | 203 | | |
204 | 204 | | |
205 | 205 | | |
| 206 | + | |
206 | 207 | | |
207 | 208 | | |
208 | 209 | | |
| |||
795 | 796 | | |
796 | 797 | | |
797 | 798 | | |
798 | | - | |
| 799 | + | |
799 | 800 | | |
800 | 801 | | |
801 | 802 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
237 | 237 | | |
238 | 238 | | |
239 | 239 | | |
240 | | - | |
| 240 | + | |
241 | 241 | | |
242 | 242 | | |
243 | 243 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
272 | 272 | | |
273 | 273 | | |
274 | 274 | | |
275 | | - | |
| 275 | + | |
276 | 276 | | |
277 | 277 | | |
278 | 278 | | |
| |||
606 | 606 | | |
607 | 607 | | |
608 | 608 | | |
609 | | - | |
610 | | - | |
611 | | - | |
612 | | - | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
613 | 615 | | |
614 | 616 | | |
615 | 617 | | |
| |||
1636 | 1638 | | |
1637 | 1639 | | |
1638 | 1640 | | |
| 1641 | + | |
1639 | 1642 | | |
1640 | 1643 | | |
1641 | 1644 | | |
| |||
0 commit comments