Karl Wiberg
1ffb3747bd
RTC_LOG(): Internally, pass logging severity as template argument
...
When the logging severity is statically known, passing it as a
template argument instead of as a function argument saves space at the
call site.
Because this is a constructor, it's not possible to pass template
arguments explicitly---they need to be deduced. So we pass a dummy
function argument whose type encodes the logging severity, and because
the dummy is an empty struct, the ABI generally specifies that this is
a no-op with no runtime cost.
In aggregate, this reduces the size of libjingle_peerconnection_so.so
by 4 kB.
Bug: webrtc:9185
Change-Id: I8118f39dc2aed3be34b2979a239fc0d3dffa969f
Reviewed-on: https://webrtc-review.googlesource.com/74582
Commit-Queue: Karl Wiberg <kwiberg@webrtc.org>
Reviewed-by: Fredrik Solenberg <solenberg@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#23136}
2018-05-07 09:08:14 +00:00
..
2018-04-25 09:08:21 +00:00
2018-03-21 08:41:13 +00:00
2018-03-22 14:13:24 +00:00
2018-05-03 11:03:21 +00:00
2018-03-23 19:47:08 +00:00
2018-05-04 14:38:34 +00:00
2018-03-23 19:47:08 +00:00
2018-03-16 13:09:18 +00:00
2018-03-16 13:09:18 +00:00
2018-04-17 18:34:14 +00:00
2018-04-26 16:33:57 +00:00
2018-04-17 18:34:14 +00:00
2018-04-17 18:34:14 +00:00
2018-03-07 22:06:20 +00:00
2018-03-07 22:06:20 +00:00
2018-05-04 14:38:34 +00:00
2018-03-09 10:50:34 +00:00
2018-03-09 10:50:34 +00:00
2018-02-01 11:38:11 +00:00
2018-03-19 11:02:01 +00:00
2018-03-19 11:02:01 +00:00
2018-03-19 11:02:01 +00:00
2018-03-07 22:06:20 +00:00
2018-02-28 19:58:24 +00:00
2018-02-28 19:58:24 +00:00
2018-02-28 19:58:24 +00:00
2018-03-19 11:02:01 +00:00
2018-02-24 00:44:06 +00:00
2018-02-24 00:44:06 +00:00
2018-02-07 16:32:01 +00:00
2018-03-19 11:02:01 +00:00
2018-02-17 02:08:19 +00:00
2018-02-17 02:08:19 +00:00
2018-02-21 00:49:26 +00:00
2018-02-21 00:49:26 +00:00
2018-02-05 11:24:59 +00:00
2018-03-07 22:06:20 +00:00
2018-03-07 22:06:20 +00:00
2018-03-19 19:22:31 +00:00
2018-04-27 14:16:01 +00:00
2018-04-03 12:51:00 +00:00
2018-05-03 10:41:41 +00:00
2018-05-03 10:41:41 +00:00
2018-02-27 13:37:39 +00:00
2018-05-04 09:22:34 +00:00
2018-05-07 09:08:14 +00:00
2018-04-03 12:51:00 +00:00
2018-03-19 19:22:31 +00:00
2018-04-27 22:49:33 +00:00
2018-04-27 22:49:33 +00:00
2018-04-27 22:49:33 +00:00
2018-04-27 22:49:33 +00:00
2018-02-16 10:40:48 +00:00
2018-04-06 01:01:48 +00:00
2018-04-06 01:01:48 +00:00
2018-04-06 01:01:48 +00:00
2018-05-04 17:14:14 +00:00
2018-04-05 21:23:20 +00:00
2018-04-05 21:23:20 +00:00
2018-02-05 16:47:35 +00:00
2018-02-05 16:47:35 +00:00
2018-02-24 00:44:06 +00:00
2018-02-24 00:44:06 +00:00
2018-04-06 01:01:48 +00:00
2018-04-06 01:01:48 +00:00
2018-04-06 01:01:48 +00:00
2018-02-24 00:44:06 +00:00
2018-04-06 01:01:48 +00:00
2018-04-03 14:07:31 +00:00
2018-04-03 12:51:00 +00:00
2018-03-19 15:21:51 +00:00
2018-03-19 15:21:51 +00:00
2018-03-19 15:21:51 +00:00
2018-02-17 23:10:21 +00:00
2018-02-17 15:14:24 +00:00
2018-03-19 11:02:01 +00:00
2018-02-17 12:00:12 +00:00
2018-02-24 00:44:06 +00:00
2018-02-24 00:44:06 +00:00
2018-04-06 14:57:02 +00:00
2018-04-06 14:57:02 +00:00
2018-03-22 08:14:53 +00:00
2018-03-19 11:02:01 +00:00
2018-03-19 11:02:01 +00:00
2018-02-19 13:05:59 +00:00
2018-02-19 13:05:59 +00:00
2018-03-05 20:09:20 +00:00
2018-03-05 20:09:20 +00:00
2018-04-03 12:51:00 +00:00
2018-04-26 16:33:57 +00:00
2018-04-26 16:33:57 +00:00
2018-03-09 10:50:34 +00:00
2018-04-03 12:51:00 +00:00
2018-05-03 10:41:41 +00:00
2018-05-03 10:41:41 +00:00
2018-04-03 12:51:00 +00:00
2018-02-05 16:47:35 +00:00
2018-02-05 16:47:35 +00:00
2018-02-24 00:44:06 +00:00
2018-02-24 00:44:06 +00:00
2018-02-24 00:44:06 +00:00
2018-02-24 00:44:06 +00:00
2018-03-23 19:26:55 +00:00
2018-04-05 23:43:07 +00:00
2018-02-12 22:06:44 +00:00
2018-02-12 22:06:44 +00:00
2018-04-07 10:07:47 +00:00
2018-04-10 10:33:34 +00:00
2018-04-03 14:07:31 +00:00
2018-04-03 11:21:30 +00:00
2018-04-03 11:21:30 +00:00
2018-04-03 12:51:00 +00:00
2018-02-14 15:32:49 +00:00
2018-02-14 15:32:49 +00:00
2018-02-15 16:10:15 +00:00
2018-02-14 15:32:49 +00:00
2018-02-15 16:10:15 +00:00
2018-02-15 16:10:15 +00:00
2018-03-19 11:02:01 +00:00
2018-02-07 10:07:28 +00:00
2018-02-07 10:07:28 +00:00
2018-03-16 13:09:18 +00:00
2018-03-05 20:09:20 +00:00
2018-03-05 20:09:20 +00:00
2018-02-27 00:31:52 +00:00
2018-03-23 02:10:54 +00:00
2018-02-01 19:47:41 +00:00
2018-04-03 12:51:00 +00:00
2018-04-12 19:22:15 +00:00
2018-03-07 22:06:20 +00:00