Performance improvement: replace memcpy with loop.
authorPetteri Aimonen <jpa@git.mail.kapsi.fi>
Tue, 5 Feb 2013 20:06:36 +0000 (22:06 +0200)
committerPetteri Aimonen <jpa@git.mail.kapsi.fi>
Tue, 5 Feb 2013 20:06:36 +0000 (22:06 +0200)
commitc372ebc665540df2578e869e73405b3d309bfc48
tree5ca9089c5aa273ac289febef43e1fe20541c896d
parent38ced18639f1e2236e9949071e3ddc148cf2ad73
Performance improvement: replace memcpy with loop.

In the pb_istream_from_buffer and pb_ostream_from_buffer, memcpy was
used to transfer values to the buffer. For the common case of
count = 1-10 bytes, a simple loop is faster.
pb_decode.c
pb_encode.c