author | Sebastian Harl <sh@tokkee.org> | |
Mon, 10 Feb 2014 18:07:49 +0000 (19:07 +0100) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Mon, 10 Feb 2014 18:07:49 +0000 (19:07 +0100) | ||
commit | 0d96909dfa8190cea20f8565b2013824f65d307a | |
tree | f350c539090ddc3cb0f938b7e1dca0aab52c4778 | tree | snapshot |
parent | f578f9621aa645ea20c4cd027aeda802f9346f12 | commit | diff |
data: Improve serialization of binary data.
Instead of calling strbuf_append() for each byte, precompute the string in a
simple for-loop and then append the result to the buffer. This basically
inlines a formatter specific to this use-case and, thus, should be must
faster.
Instead of calling strbuf_append() for each byte, precompute the string in a
simple for-loop and then append the result to the buffer. This basically
inlines a formatter specific to this use-case and, thus, should be must
faster.
src/core/data.c | diff | blob | history |