On Sat, Jan 21, 2012 at 06:28:33PM +0000, Måns Rullgård wrote:
> Diego Biurrun <di...@biurrun.de> writes:
> > On Fri, Jan 20, 2012 at 02:24:18PM -0800, Luca Barbato wrote:
> >> On 20/01/12 13:49, Martin Storsjö wrote:
> >> > On Fri, 20 Jan 2012, Luca Barbato wrote:
> >> > 
> >> >> On 20/01/12 11:00, Martin Storsjö wrote:
> >> >>> Originally, sizeof(struct MOVIentry) was 48, after the reordering,
> >> >>> it is 40 in my build configuration.
> >> >>>
> >> >>> When writing really long mov/mp4 files, this can make a difference
> >> >>> - this saves a bit over 2 MB of memory per hour of video (down to
> >> >>> 10.3 MB per hour from 12.3 MB per hour initially) for a video with
> >> >>> 75 packets per second - 25 fps + 50 audio packets (which is the
> >> >>> case for AMR audio).
> >> >>> ---
> >> >>
> >> >> Ok, I guess. Is there around something in dwarves to point structures
> >> >> that could require less memory once reordered.
> >> > 
> >> > Could you rephrase the second sentence - I don't really understand what
> >> > it says.
> >> 
> >> I was hurrying away... I meant that the dwarves tool should have a mean
> >> to provide this information, if we want to try to brush away some memory.
> >
> > Go right ahead :)
> >
> > I remember that Mans once mentioned that the structures in the Vorbis
> > decoder could benefit from tighter packing.
> 
> That goes for a lot of structs.

So what does a poor uninitiated soul like myself have to read to know
how to pack tightly or tighter and fix or improve such cases?

Diego
_______________________________________________
libav-devel mailing list
libav-devel@libav.org
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to