From 3f5c647de97a424d8a06e85b912ed46cc3ca8298 Mon Sep 17 00:00:00 2001 From: bfredl Date: Thu, 2 Jun 2022 09:18:13 +0200 Subject: perf(memory): use an arena for RPC decoding drawback: tracing memory errors with ASAN is less accurate for arena allocated memory. Therefore, to start with it is being used for Object types around serialization/deserialization exclusively. This is going to have a large impact especially when TUI is refactored as a co-prosess as all UI events will be serialized and deserialized by nvim itself. --- src/nvim/ui.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'src/nvim/ui.c') diff --git a/src/nvim/ui.c b/src/nvim/ui.c index d66e57b13b..bdcb7af7e9 100644 --- a/src/nvim/ui.c +++ b/src/nvim/ui.c @@ -229,15 +229,9 @@ void ui_refresh(void) p_lz = save_p_lz; } else { Array args = ARRAY_DICT_INIT; - Error err = ERROR_INIT; ADD(args, INTEGER_OBJ((int)width)); ADD(args, INTEGER_OBJ((int)height)); - rpc_send_call(ui_client_channel_id, "nvim_ui_try_resize", args, &err); - - if (ERROR_SET(&err)) { - ELOG("ui_client resize: %s", err.msg); - } - api_clear_error(&err); + rpc_send_event(ui_client_channel_id, "nvim_ui_try_resize", args); } if (ext_widgets[kUIMessages]) { -- cgit