nvim-lua / completion-nvim

A async completion framework aims to provide completion to neovim's built in LSP written in Lua
Apache License 2.0
973 stars 79 forks source link

Improvement to sorting performance. #374

Closed mrcjkb closed 3 years ago

mrcjkb commented 3 years ago

This PR improves the sorting performance a bit. By using or statements rather than and, the nil checks can be skipped for many items (if the priorities or scores are equal). Equal priorities are not an uncommon occurrence.