I actually only started using cork very recently. I’ve always used git-submodules for handling/updating kakoune plugins and then manually sourced them in kakrc.
Cork does provide some niceties around scoping plugin-related options in config files, so that’s my only reason to use it.
I haven’t noticed any changes in startup performance after switching from manual sourcing to cork (although i haven’t measured it).
I can’t find performance ideas in
cork, and I’ve had trouble using it (how to install plugins in the first place?).
Plugins are installed by the same command:
cork update, which can be run either inside kakoune or from a shell session. I’m running it as a part of system update with topgrade.
It is of course possible that you have really fast hardware, so we need to compare comparables.
The hyperfine results I shared earlier are done on X1 Carbon gen 9 (i5). I’m getting similar results right now on my desktop machine:
~> inxi --cpu
CPU: Info: 6-Core model: AMD Ryzen 5 3600 bits: 64 type: MT MCP cache: L2: 3 MiB
Speed: 2196 MHz min/max: 2200/3600 MHz Core speeds (MHz): 1: 2196 2: 2119 3: 2452 4: 3599 5: 2301 6: 2079 7: 2434
8: 3951 9: 2198 10: 2199 11: 2438 12: 2061
~> hyperfine 'command kak -ui dummy -e quit'
Benchmark 1: kak -ui dummy -e quit
Time (mean ± σ): 34.7 ms ± 0.3 ms [User: 28.8 ms, System: 9.8 ms]
Range (min … max): 33.8 ms … 35.3 ms 85 runs
UPD: actually there’s one more reason I use cork (over alternatives): it can be run from shell, as I don’t want to manually update plugins from inside Kakoune.