Re: [ovs-dev] [PATCH ovn 1/3] treewide: Remove unnecessary strlen() calls.

2023-03-01 Thread Mark Michelson
Acked-by: Mark Michelson On 2/27/23 15:03, Ilya Maximets wrote: In many cases OVN components are using strlen() to check if the string is not empty. In that case, unnecessary scan of the whole string is performed and the length is calculated, while it's enough to just check the first byte. So

Re: [ovs-dev] [PATCH ovn 1/3] treewide: Remove unnecessary strlen() calls.

2023-02-28 Thread Simon Horman
On Mon, Feb 27, 2023 at 09:03:42PM +0100, Ilya Maximets wrote: > In many cases OVN components are using strlen() to check if the string > is not empty. In that case, unnecessary scan of the whole string is > performed and the length is calculated, while it's enough to just check > the first byte.

[ovs-dev] [PATCH ovn 1/3] treewide: Remove unnecessary strlen() calls.

2023-02-27 Thread Ilya Maximets
In many cases OVN components are using strlen() to check if the string is not empty. In that case, unnecessary scan of the whole string is performed and the length is calculated, while it's enough to just check the first byte. Some functions also have completely unnecessary strlen() calls where n