commit | 8778bffdd25dca050b3aa2a7a7e05bc8a63a6665 | [log] [tgz] |
---|---|---|
author | Denys Vlasenko <dvlasenk@redhat.com> | Wed Aug 31 12:22:56 2011 +0200 |
committer | Denys Vlasenko <dvlasenk@redhat.com> | Wed Aug 31 12:22:56 2011 +0200 |
tree | 8b13e2987961283c0b828f309a5096dba67f6604 | |
parent | 5284557bfad96f12dd5798539008e1644f1dc094 [diff] |
Optimize string_quote() for speed * util.c (string_quote): Speed up check for terminating NUL. Replace strintf() with open-coded binary to hex/oct conversions - we potentially do them for every single byte, need to be fast. Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>