mirror of
https://github.com/neovim/neovim.git
synced 2025-09-24 20:18:32 +00:00
perf(ui): unpack a single ui event at a time, instead of a "redraw" batch
This reduces the memory overhead for large redraw batches, as a much smaller prefix of the api object buffer is used and needs to be hot in cache.
This commit is contained in:
@@ -348,7 +348,8 @@ void ui_attach_impl(UI *ui, uint64_t chanid)
|
||||
if (ui_count == MAX_UI_COUNT) {
|
||||
abort();
|
||||
}
|
||||
if (!ui->ui_ext[kUIMultigrid] && !ui->ui_ext[kUIFloatDebug]) {
|
||||
if (!ui->ui_ext[kUIMultigrid] && !ui->ui_ext[kUIFloatDebug]
|
||||
&& !ui_client_channel_id) {
|
||||
ui_comp_attach(ui);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user