[PATCH] reduce memory consumption by ~ 1.5MB

Matthias Welwarsky matze at stud.fbi.fh-darmstadt.de
Tue Dec 30 09:39:29 GMT 2003


Hi,

possibly this was done to reduce the startup time of the ogg-vorbis playobject 
in arts? I know that there were attempts to let some applications use vorbis 
sound instead of WAV.

regards,
	matthias

On Monday 29 December 2003 16:52, Dirk Mueller wrote:
> Hi,
>
> this patch reduces memory consumption of a minimal KDE session by roughly
> 1.5-2MB by not linking the vorbisenc library. it contains a accoustic model
> which is embedded as unshared, relocated data, producing major start time
> overhead and memory footprint. Removing the default linkage removes it from
> all arts-using applications or applications using arts-like plugins (like
> the audiopreview one for konqueror).
>
> I've looked through all of KDE CVS sources, there doesn't seem to be an
> implicit assumption of being linked against libvorbisenc anywhere.
> of course, some weird 3rd party thing might assume it though. The question
> is, can we break compatibility here. I think yes.
>
> Below is the patch, works fine for me, reducing memory usage by ~ 2MB for
> me.
>
> Please review.
>
>
> Dirk

-- 
Matthias Welwarsky
Fachschaft Informatik FH Darmstadt
Email: matze at stud.fbi.fh-darmstadt.de

"all software sucks equally, but some software is more equal"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: signature
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20031230/d07d9bd5/attachment.sig>


More information about the kde-core-devel mailing list