[PATCH] Precompute string lengths in PerformRadiusTransaction

Поиск
Список
Период
Сортировка
От zengman
Тема [PATCH] Precompute string lengths in PerformRadiusTransaction
Дата
Msg-id tencent_6B29EC4570E6F0C659B4EAA7@qq.com
обсуждение
Ответы Re: [PATCH] Precompute string lengths in PerformRadiusTransaction
Re: [PATCH] Precompute string lengths in PerformRadiusTransaction
Список pgsql-hackers
Hi, hackers

I noticed that the `PerformRadiusTransaction` function is invoked in a loop, 
and the function itself contains internal loops that repeatedly call strlen() on the 'passwd' and 'secret' strings. 
While the optimization gain may be minimal, I still think it’s worth making the change — 
we can precompute the lengths of these two strings at the start of the function to eliminate redundant strlen() calls.

--
Regards,
Man Zeng
www.openhalo.org
Вложения

В списке pgsql-hackers по дате отправления: