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)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Thu, 2 May 2019 04:05:45 +0000 (00:05 -0400)
commit6c677fb54f458456e3b5a15cffa6774bd7a86f54
treec11858a092fb17960bd1972eafebdd1f4a8cd38c
parent3fea54f69edd1780566230255da196cb6e82df62
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.025966 seconds and 4 git commands to generate.