Aras Pranckevicius
8a75b54735
BLI: change timeit to use fmtlib instead of direct cout
...
Especially on windows, direct output to `cout` via `<<` is very expensive.
Instead, use fmtlib to do all formatting into a no-alloc `fmt::memory_buffer`,
and output that with one call to `cout`.
timeit utilities are not used much by default, but during development or
profiling one often uncomments macros like `DEBUG_TIME` that then enable
`SCOPED_TIMER` or `SCOPED_TIMER_AVERAGED`.
Having one `SCOPED_TIMER_AVERAGED` inside sequencer `draw_channels`, with
empty timeline and all default channels; the overhead in % of `draw_channels`
duration of said scoped timer before and after this change:
- Windows: 29% -> 5%
- Mac: 5.0% -> 4.4%
Pull Request: https://projects.blender.org/blender/blender/pulls/115233
2023-11-21 18:35:42 +01:00
..
2023-11-21 18:35:42 +01:00
2023-11-21 09:42:39 -05:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-05-31 16:19:06 +02:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-11-02 16:33:11 +01:00
2023-08-16 00:20:26 +10:00
2023-08-25 11:46:37 +02:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 09:51:37 +02:00
2023-10-23 21:29:00 +02:00
2023-09-22 08:13:17 -04:00
2023-09-22 08:13:17 -04:00
2023-08-16 00:20:26 +10:00
2023-07-27 14:16:58 +02:00
2023-05-31 16:19:06 +02:00
2023-08-16 00:20:26 +10:00
2023-11-03 09:42:56 +01:00
2023-05-31 16:19:06 +02:00
2023-08-17 23:17:30 +10:00
2023-08-16 00:20:26 +10:00
2023-07-15 15:45:03 +10:00
2023-11-20 09:39:13 +01:00
2023-08-16 00:20:26 +10:00
2023-10-30 21:40:35 +01:00
2023-09-14 13:25:24 +10:00
2023-11-20 09:39:13 +01:00
2023-08-16 00:20:26 +10:00
2023-09-22 12:21:18 +10:00
2023-08-16 09:51:37 +02:00
2023-08-16 09:51:37 +02:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 09:51:37 +02:00
2023-05-31 16:19:06 +02:00
2023-05-31 16:19:06 +02:00
2023-05-31 16:19:06 +02:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-05-31 16:19:06 +02:00
2023-10-10 15:36:15 +02:00
2023-08-16 00:20:26 +10:00
2023-10-10 15:36:15 +02:00
2023-05-31 16:19:06 +02:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-09-22 12:21:18 +10:00
2023-08-16 00:20:26 +10:00
2023-05-31 16:19:06 +02:00
2023-05-31 16:19:06 +02:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-09-01 21:37:11 +02:00
2023-08-16 00:20:26 +10:00
2023-09-01 21:37:11 +02:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-11-20 09:39:13 +01:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-09-08 16:53:30 +10:00
2023-08-16 09:51:37 +02:00
2023-08-16 09:51:37 +02:00
2023-08-16 00:20:26 +10:00
2023-05-31 16:19:06 +02:00
2023-09-04 19:05:48 -03:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-05-31 16:19:06 +02:00
2023-08-16 00:20:26 +10:00
2023-08-16 14:48:53 +03:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-07-26 16:12:55 +02:00
2023-05-31 16:19:06 +02:00
2023-08-16 00:20:26 +10:00
2023-10-30 21:40:35 +01:00
2023-08-16 00:20:26 +10:00
2023-11-21 13:38:43 +01:00
2023-11-20 09:39:13 +01:00
2023-11-20 09:39:13 +01:00
2023-11-11 21:09:54 +01:00
2023-08-16 00:20:26 +10:00
2023-11-07 19:49:01 +01:00
2023-11-13 08:12:39 +01:00
2023-08-16 09:51:37 +02:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-10 14:51:40 +03:00
2023-05-31 16:19:06 +02:00
2023-08-16 00:20:26 +10:00
2023-11-20 09:39:13 +01:00
2023-08-16 00:20:26 +10:00
2023-11-07 21:16:47 +02:00
2023-05-31 16:19:06 +02:00
2023-08-16 00:20:26 +10:00
2023-08-16 09:51:37 +02:00
2023-05-31 16:19:06 +02:00
2023-11-11 21:09:54 +01:00
2023-08-16 00:20:26 +10:00
2023-11-20 09:39:13 +01:00
2023-11-11 22:15:02 +01:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-09-04 14:49:28 +02:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-09-03 16:43:45 +02:00
2023-09-07 15:54:53 +10:00
2023-10-30 21:40:35 +01:00
2023-05-31 16:19:06 +02:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 09:51:37 +02:00
2023-10-30 21:40:35 +01:00
2023-11-21 13:38:43 +01:00
2023-05-31 16:19:06 +02:00
2023-11-18 09:40:44 +01:00
2023-09-06 22:27:39 -04:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-09-22 12:21:18 +10:00
2023-06-13 14:36:32 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-05-31 16:19:06 +02:00
2023-07-31 13:02:30 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-07-07 15:42:07 +10:00
2023-08-16 00:20:26 +10:00
2023-05-31 16:19:06 +02:00
2023-08-16 09:51:37 +02:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-10-07 23:14:04 +02:00
2023-08-29 17:07:42 +02:00
2023-08-16 00:20:26 +10:00
2023-05-31 16:19:06 +02:00
2023-09-25 17:06:04 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-11-13 19:09:09 +01:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-09-20 12:11:30 +10:00
2023-08-16 09:51:37 +02:00
2023-10-20 13:50:10 +02:00
2023-10-30 21:40:35 +01:00
2023-09-18 15:07:09 +10:00
2023-10-30 21:40:35 +01:00
2023-11-17 00:11:40 +01:00
2023-11-20 09:39:13 +01:00
2023-11-20 09:39:13 +01:00
2023-05-31 16:19:06 +02:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-11-13 10:42:29 +01:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-05-31 16:19:06 +02:00
2023-08-16 00:20:26 +10:00
2023-08-16 09:51:37 +02:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-10-07 23:14:04 +02:00
2023-10-30 21:40:35 +01:00
2023-10-30 21:40:35 +01:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-05-31 16:19:06 +02:00
2023-11-01 01:44:51 +01:00
2023-11-01 01:44:51 +01:00
2023-11-21 18:35:42 +01:00
2023-08-16 00:20:26 +10:00
2023-05-31 16:19:06 +02:00