[Tarantool-patches] [PATCH v3 2/2] base64: improve decoder performance
Vladislav Shpilevoy
v.shpilevoy at tarantool.org
Tue Dec 22 19:40:56 MSK 2020
>>> 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)
I used it as an example. You don't need to blindly merge
everything I post here. Because the patch is yours, not mine.
And I may be wrong quite often.
More information about the Tarantool-patches
mailing list