On Mon, 2016-09-26 at 09:12 +0100, Frediano Ziglio wrote: > Move large buffer field at the end of structure. > Due to the way machine address memory this usually can reduce code > size > and make program sligthly faster. > Actually reduce size by 100 bytes. > > Signed-off-by: Frediano Ziglio <fziglio@xxxxxxxxxx> Acked-by: Pavel Grunt <pgrunt@xxxxxxxxxx> > --- > server/image-encoders.h | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/server/image-encoders.h b/server/image-encoders.h > index 5bad0d4..6542edd 100644 > --- a/server/image-encoders.h > +++ b/server/image-encoders.h > @@ -58,6 +58,8 @@ void > glz_retention_detach_drawables(GlzImageRetention *ret); > > #define RED_COMPRESS_BUF_SIZE (1024 * 64) > struct RedCompressBuf { > + RedCompressBuf *send_next; > + > /* This buffer provide space for compression algorithms. > * Some algorithms access the buffer as an array of 32 bit > words > * so is defined to make sure is always aligned that way. > @@ -66,7 +68,6 @@ struct RedCompressBuf { > uint8_t bytes[RED_COMPRESS_BUF_SIZE]; > uint32_t words[RED_COMPRESS_BUF_SIZE / 4]; > } buf; > - RedCompressBuf *send_next; > }; > > static inline void compress_buf_free(RedCompressBuf *buf) > _______________________________________________ Spice-devel mailing list Spice-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/spice-devel