Code

data: Improve serialization of binary data.
authorSebastian Harl <sh@tokkee.org>
Mon, 10 Feb 2014 18:07:49 +0000 (19:07 +0100)
committerSebastian Harl <sh@tokkee.org>
Mon, 10 Feb 2014 18:07:49 +0000 (19:07 +0100)
commit0d96909dfa8190cea20f8565b2013824f65d307a
treef350c539090ddc3cb0f938b7e1dca0aab52c4778
parentf578f9621aa645ea20c4cd027aeda802f9346f12
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.
src/core/data.c