Files
systemd/src/basic
Zbigniew Jędrzejewski-Szmek e6f055cbc4 basic/efivars: replace dynanamic creation of efivar names with static strings
Creating those string dynamically at runtime is slow and unnecessary.
Let's use static strings with a bit of macro magic and the let the compiler
coalesce as much as possible.

$ size build/src/shared/libsystemd-shared-248.so{.old,}
   text	   data	    bss	    dec	    hex	filename
2813453	  94572	   4584	2912609	 2c7161	build/src/shared/libsystemd-shared-248.so.old
2812309	  94564	   4584	2911457	 2c6ce1	build/src/shared/libsystemd-shared-248.so

A nice side-effect is that the same form is used everywhere, so it's easier to
figure out all variables that are used, and where each specific variable is
used.

C.f. 2b0445262a.

Note: 'const char *foo = alloca(…);' seems OK. Our coding style document and
alloca(3) only warn against using alloca() in function invocations. Declaring
both stack variable and alloca at the same time should be fine: no matter in
which order they happen, i.e. if the pointer variable is above the contents,
or the contents are above the pointer, or even if the pointer is elided by the
compiler, everything should be fine.
2021-06-15 22:01:42 +02:00
..
2021-04-20 18:39:36 +02:00
2020-11-09 13:23:58 +09:00
2021-05-20 18:18:56 +09:00
2021-02-22 20:10:55 +01:00
2021-03-11 09:21:07 +01:00
2021-05-12 10:19:19 +09:00
2021-05-12 10:19:19 +09:00
2021-06-08 17:23:26 +02:00
2021-06-08 17:23:26 +02:00
2021-05-17 22:27:41 +01:00
2021-05-17 22:27:41 +01:00
2021-05-17 22:27:41 +01:00
2021-05-17 22:27:41 +01:00
2021-06-04 01:48:50 +09:00
2021-06-04 01:48:50 +09:00
2020-11-18 11:15:05 +01:00
2020-11-09 13:23:58 +09:00
2021-03-31 21:43:45 +02:00
2021-05-07 14:38:48 +01:00
2021-06-15 19:07:32 +09:00
2021-03-07 12:15:42 +01:00
2021-03-05 07:10:13 +09:00
2021-06-08 17:23:26 +02:00
2021-06-08 17:23:26 +02:00
2021-04-08 13:00:50 +02:00
2021-02-16 17:15:11 +01:00
2021-06-15 19:07:11 +09:00
2021-06-15 19:07:11 +09:00
2021-06-15 19:07:11 +09:00
2021-06-15 19:07:11 +09:00
2021-06-15 19:07:11 +09:00
2021-06-15 19:07:11 +09:00
2021-06-15 19:07:11 +09:00
2021-06-15 19:07:11 +09:00
2021-06-15 19:07:11 +09:00
2021-06-15 19:07:11 +09:00
2021-06-15 19:07:11 +09:00
2021-06-15 19:07:11 +09:00
2021-06-15 19:07:11 +09:00
2021-06-15 19:07:32 +09:00
2021-06-15 19:07:11 +09:00
2021-06-15 19:07:11 +09:00
2021-06-15 19:07:11 +09:00
2021-06-15 19:07:11 +09:00
2021-06-15 19:07:11 +09:00
2021-03-01 13:40:52 +01:00
2021-04-30 09:31:34 -07:00