[MPlayer-dev-eng] demuxer question

Alexander Neundorf neundorf at dellingsoft.de
Fri May 17 13:58:46 CEST 2002


On Friday 17 May 2002 14:02, you wrote:
> Hi,
>
> > A related note, do you think it would make mplayer faster if
> > new_demux_packet() wouldn't actually always malloc() new packets, but if
> > it would have a "list" or whatever of demux_packet_t's which it marks
> > free and used ?
> > The requested size would have to be checked.
>
> for constant size packets, it may help. but it's rare, only uncompressed
> and dv has such thing :)

Ah, ok.

> for variable buffer size, i assume that we cannot beat libc's malloc()
> implementation... so it doesn't worth to mess with it.

Well, current KDE 3 sources feature a configure switch --enable-fast-malloc, 
which enables the compilation of a faster malloc() than the glibc one, I 
didn't try it yet.

For the case somebody is interested:
http://lxr.kde.org/source/kdelibs/kdecore/malloc/

Bye
Alex



More information about the MPlayer-dev-eng mailing list