[Tarantool-patches] [PATCH v3 2/2] base64: improve decoder performance
Sergey Nikiforov
void at tarantool.org
Tue Dec 22 19:16:57 MSK 2020
Hi!
On 22.12.2020 18:05, Vladislav Shpilevoy wrote:
> Thanks for the patch!
>
>> diff --git a/test/unit/base64.c b/test/unit/base64.c
>> index ada497adf..76db7d782 100644
>> --- a/test/unit/base64.c
>> +++ b/test/unit/base64.c
>> @@ -34,6 +34,11 @@ base64_test(const char *str, int options, const char *no_symbols,
>> free(base64_buf);
>> free(strbuf);
>>
>> + const char *in = "sIIpHw==";
>> + int in_len = strlen(in);
>> + rc = base64_decode(in, in_len, NULL, 0);
>> + is(rc, 0, "no space in out buffer");
>
> From the .result file it is clear this test is done multiple
> times. And it does not depend on base64_test() arguments. So why
> do you run exactly the same test again and again? Maybe move it
> to a separate test function which is run only once?
Ok, I will do this if there will be another patch revision.
You are, however, reviewing your own code - I have just used your patch
from earlier review iteration (17 Dec 2020 00:22:08 +0100)
More information about the Tarantool-patches
mailing list