lib: remove useless checks, make functions inline on fast path
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Tue, 12 Jun 2018 20:33:14 +0000 (16:33 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 3 May 2019 22:19:34 +0000 (18:19 -0400)
commitc5a24b0a349d9a435ba5382f852c514817da4fff
tree14e9104ad87cd835b4472a40cc565b1ee18f973a
parent1d7bf34933f21be1aac814b60dc0def7d4506c89
lib: remove useless checks, make functions inline on fast path

This patch:

* Removes a few useless checks on the fast path with the help of
  bt_object_put_no_null_check(), bt_object_get_no_null_check(),
  and bt_object_get_no_null_check_no_parent_check() when it's possible.

* Makes setting any frozen flag on the fast path only happen in
  developer mode.

* Makes fast path functions `static inline` (specific creating and
  recycling functions).

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Change-Id: If40b5f8dea9a085e8e30e25a9542767f3eb9815e
include/babeltrace/ctf-ir/event-internal.h
include/babeltrace/ctf-ir/fields-internal.h
include/babeltrace/ctf-ir/packet-internal.h
include/babeltrace/graph/notification-internal.h
include/babeltrace/object-internal.h
lib/ctf-ir/event.c
lib/ctf-ir/packet.c
lib/ctf-writer/event.c
lib/ctf-writer/stream.c
lib/graph/notification/event.c
lib/graph/notification/packet.c
This page took 0.028896 seconds and 4 git commands to generate.