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-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-09-25 17:06:04 +10: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-11-07 15:42:52 +11: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-06-03 08:54:37 +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-08-16 00:20:26 +10:00
2023-07-03 17:01:32 +10:00
2023-11-17 00:11:40 +01:00
2023-05-31 16:19:06 +02:00
2023-08-29 17:00:33 +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-10 12:16:31 -03:00
2023-08-16 00:20:26 +10:00
2023-06-03 08:54:37 +10:00
2023-06-03 08:54:37 +10:00
2023-08-16 00:20:26 +10:00
2023-08-15 18:01:11 +02:00
2023-08-16 00:20:26 +10:00
2023-08-28 15:01:05 +02: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-08-16 00:20:26 +10: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-11-07 15:42:52 +11: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-05-31 16:19:06 +02:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-11-07 11:35:16 +11:00
2023-10-30 21:40:35 +01:00
2023-10-10 15:36:15 +02:00
2023-10-10 15:36:15 +02:00
2023-10-30 21:40:35 +01: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-11-13 10:42:29 +01:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-06-29 10:56:33 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-11-07 15:42:52 +11:00
2023-08-16 00:20:26 +10:00
2023-11-13 10:42:29 +01:00
2023-11-07 15:42:52 +11: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-11-06 20:51:21 +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-30 21:40:35 +01:00
2023-11-07 19:49:01 +01:00
2023-08-16 00:20:26 +10:00
2023-08-10 14:51:40 +03:00
2023-11-07 15:42:52 +11: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-07-05 14:09:33 +10:00
2023-08-10 14:51:40 +03:00
2023-11-07 21:16:47 +02:00
2023-11-09 09:54:28 +11:00
2023-08-16 00:20:26 +10:00
2023-08-10 14:51:40 +03:00
2023-11-21 15:58:17 +01:00
2023-11-07 19:49:01 +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-09-07 15:54:53 +10:00
2023-11-07 19:49:01 +01: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-03 09:44:28 +10:00
2023-11-18 09:40:44 +01:00
2023-08-16 00:20:26 +10:00
2023-11-07 16:33:19 +11:00
2023-09-29 17:13:17 +10:00
2023-08-16 00:20:26 +10:00
2023-08-10 14:51:40 +03:00
2023-08-10 14:51:40 +03:00
2023-07-07 15:42:07 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-11-10 12:56:20 +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-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-07 11:35:16 +11:00
2023-10-05 13:07:58 +11:00
2023-11-07 15:42:52 +11:00
2023-10-20 13:50:10 +02:00
2023-11-07 11:35:16 +11:00
2023-11-07 11:35:16 +11:00
2023-11-17 00:11:40 +01:00
2023-09-12 14:48:20 +10:00
2023-09-06 22:07:07 +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-07 16:33:19 +11: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-11-21 18:35:42 +01:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-11-07 15:42:52 +11:00
2023-11-07 15:42:52 +11:00
2023-08-16 00:20:26 +10:00
2023-05-31 16:19:06 +02:00
2023-10-30 21:40:35 +01:00
2023-11-15 18:32:45 +01:00
2023-10-31 18:51:26 -06:00