]> Kevux Git Server - fll/commit
Update: Use libc functions more in f_color.
authorKevin Day <thekevinday@gmail.com>
Wed, 19 Jan 2022 00:37:32 +0000 (18:37 -0600)
committerKevin Day <thekevinday@gmail.com>
Wed, 19 Jan 2022 00:37:32 +0000 (18:37 -0600)
commit833ac62bbc7f4df17fcca4d14991a0ffa1851ff6
treef8fbfb4daa15b1f696c47228c9a949c6c6ba2715
parent5444d6723650925040ae4a8f31da0a725b62b2fa
Update: Use libc functions more in f_color.

The f_string_dynamic_increase_by() guarantees the size is allocated.
The f_string_dynamic_append() doesn't need to be called when the simple memcpy() can be directly called.

Doing this saves the status check and the additional function calls.
This likely increases performance but this performance increase potential has neither been tested nor confirmed.
level_0/f_color/c/color.c