lazy loading

This commit is contained in:
Oliver Ladner 2024-01-24 08:28:20 +01:00
commit ba56bab172
8 changed files with 77 additions and 67 deletions

View file

@ -29,30 +29,30 @@ macOS 14.0 (23A344).
### Start and open init.lua
Around 10% of the plugins are lazy-loaded.
Around 25% of the plugins are lazy-loaded.
```bash
Startuptime: 79.91ms
Startuptime: 100.58ms
Based on the actual CPU time of the Neovim process till UIEnter.
This is more accurate than `nvim --startuptime`.
LazyStart 11.53ms
LazyDone 46.36ms (+34.83ms)
UIEnter 79.91ms (+33.55ms)
LazyStart 11.04ms
LazyDone 25.69ms (+14.65ms)
UIEnter 100.58ms (+74.89ms)
```
### Starting with an empty file
Around 50% of the plugins are lazy-loaded.
Around 75% of the plugins are lazy-loaded.
```bash
Startuptime: 47.58ms
Startuptime: 32.31ms
Based on the actual CPU time of the Neovim process till UIEnter.
This is more accurate than `nvim --startuptime`.
LazyStart 11.16ms
LazyDone 41.83ms (+30.67ms)
UIEnter 47.58ms (+5.75ms)
LazyStart 10.71ms
LazyDone 25.36ms (+14.65ms)
UIEnter 32.31ms (+6.95ms)
```
## Plugins