[vlc-devel] [PATCH] Media library core

Måns Rullgård mans at mansr.com
Sat Dec 5 15:22:11 CET 2009


Jean-Baptiste Kempf <jb at videolan.org> writes:

> On Fri, Dec 04, 2009 at 06:43:28PM +0530, Srikanth Raju wrote :
>> Hello,
>> This is the ML core.
>> 
>> Any more suggestions/comments?
>
> No comment on that, but I am just curious:
> would reordering of elements in ml_media_t allow memory savings?
> Like if int8 or char are regrouped so it can be aligned on borders?

Yes, struct members are naturally aligned, so grouping small members
together is a good idea.  Otherwise there will be gaps.

-- 
Måns Rullgård
mans at mansr.com




More information about the vlc-devel mailing list