Re: [PATCH] efi_loader: replace a u16_strdup with alloc + memcpy

2022-11-14 Thread Heinrich Schuchardt
On 11/11/22 19:04, Ilias Apalodimas wrote: Heinrich reports that on RISC-V unaligned access is emulated by OpenSBI which is very slow. Performance wise it's better if we skip the calls to u16_strdup() -- which in turn calls u16_strsize() and just allocate/copy the memory directly. The access to

[PATCH] efi_loader: replace a u16_strdup with alloc + memcpy

2022-11-11 Thread Ilias Apalodimas
Heinrich reports that on RISC-V unaligned access is emulated by OpenSBI which is very slow. Performance wise it's better if we skip the calls to u16_strdup() -- which in turn calls u16_strsize() and just allocate/copy the memory directly. The access to dp.length may still be unaligned, but that's