Large performance improvement by caching event class name and id
[babeltrace.git] / include / babeltrace / ctf-ir / event-class-internal.h
index 1c6a9a6c4e667af8829deeee9b1be1dfce3e10b6..43b6ac41ce05420dcc27b80d1d74e8a01011859f 100644 (file)
@@ -56,6 +56,10 @@ struct bt_ctf_event_class {
         * no events are created out of this event class.
         */
        int valid;
+
+       /* Cached values */
+       const char *name;
+       int64_t id;
 };
 
 BT_HIDDEN
This page took 0.023021 seconds and 4 git commands to generate.