[gnome-builder] code: mark recheck as unlikely
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] code: mark recheck as unlikely
- Date: Fri, 15 Feb 2019 20:49:02 +0000 (UTC)
commit b654da93e9367b7d060f75495e98e69b827148f7
Author: Christian Hergert <chergert redhat com>
Date: Fri Feb 15 12:44:01 2019 -0800
code: mark recheck as unlikely
To try to get that call out of the main code path.
src/libide/code/ide-buffer.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/libide/code/ide-buffer.c b/src/libide/code/ide-buffer.c
index 39cb7701e..a4c2682e3 100644
--- a/src/libide/code/ide-buffer.c
+++ b/src/libide/code/ide-buffer.c
@@ -1838,7 +1838,7 @@ ide_buffer_insert_text (GtkTextBuffer *buffer,
ide_buffer_emit_cursor_moved (IDE_BUFFER (buffer));
- if (recheck_language)
+ if G_UNLIKELY (recheck_language)
ide_buffer_guess_language (IDE_BUFFER (buffer));
IDE_EXIT;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]