commit | 6c595aea070de5652afc6fe37ab4976806a522a2 | [log] [tgz] |
---|---|---|
author | Michael Heimpold <michael.heimpold@i2se.com> | Tue Dec 18 15:02:25 2018 +0100 |
committer | Chris Ball <chris@printf.net> | Fri Oct 04 20:47:30 2019 -0400 |
tree | 0b9d2e30b2510ed9c3305b5236da965eeeda3780 | |
parent | c19c7694d21c2d5b2878954eac8bc55a9bd639e7 [diff] |
Optimize to_binstr() function Appending multiple times to same string is slow since strcat() needs to determine the end during each run. So manually maintain a pointer to the end to speed-up things. Signed-off-by: Michael Heimpold <michael.heimpold@i2se.com> Cc: Michael Heimpold <mhei@heimpold.de> Reviewed-by: Avri Altman <avri.altman@wdc.com> Signed-off-by: Chris Ball <chris@printf.net>