On 25 Apr 2025, at 22:45, Dmitry Porokh via dev wrote:
> According to profiling data, converting UUIDs to strings is a frequent
> operation in some workloads. This typically results in a call to
> xasprintf(), which internally calls vsnprintf() twice, first to
> calculate the required buffer size, and then to format the string.
>
> This patch introduces specialized functions for printing UUIDs, which
> both reduces code duplication and improves performance.
>
> For example, on my laptop, 10,000,000 calls to the new uuid_to_string()
> function takes 1296 ms, while the same number of xasprintf() calls using
> UUID_FMT take 2498 ms.
>
> Signed-off-by: Dmitry Porokh <dpor...@nvidia.com>
Thanks for this patch Dmitry, and congratulations on your first OVS patch
submission.
It has been applied to main.
Cheers,
Eelco
_______________________________________________
dev mailing list
d...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-dev