From a4c62a3fee26761ff909e7fb01f372484db3057f Mon Sep 17 00:00:00 2001 From: Ailin Nemui Date: Sun, 8 Jun 2014 02:18:57 +0200 Subject: speed up window_item_find by interning name and removing call to channel_find --- src/core/channel-rec.h | 1 - src/core/query-rec.h | 1 - src/core/window-item-rec.h | 2 +- 3 files changed, 1 insertion(+), 3 deletions(-) (limited to 'src/core') diff --git a/src/core/channel-rec.h b/src/core/channel-rec.h index 7b806ca4..f3ec5f8d 100644 --- a/src/core/channel-rec.h +++ b/src/core/channel-rec.h @@ -2,7 +2,6 @@ #include "window-item-rec.h" -char *name; char *topic; char *topic_by; time_t topic_time; diff --git a/src/core/query-rec.h b/src/core/query-rec.h index ddb85ba4..fc08d2ef 100644 --- a/src/core/query-rec.h +++ b/src/core/query-rec.h @@ -2,7 +2,6 @@ #include "window-item-rec.h" -char *name; char *address; char *server_tag; time_t last_unread_msg; diff --git a/src/core/window-item-rec.h b/src/core/window-item-rec.h index d7b6f7db..7bf5ba5f 100644 --- a/src/core/window-item-rec.h +++ b/src/core/window-item-rec.h @@ -7,7 +7,7 @@ GHashTable *module_data; void *window; STRUCT_SERVER_REC *server; char *visible_name; - +char *name; time_t createtime; int data_level; char *hilight_color; -- cgit v1.2.3