[tremor] Lacing values and memory usage

Monty xiphmont at xiph.org
Wed Dec 18 20:51:22 PST 2002



On Thu, Nov 14, 2002 at 07:04:56PM -0500, Tim Norman wrote:
> Hi all,
> 
> I'm building Tremor on a platform with a segmented memory architecture.
> Each memory allocation cannot exceed about 64KBytes.  I was getting an
> error in _os_lacing_expand on the realloc, where it was allocating just
> a little bit over 64K for lacing_vals.
> 
> To prevent this, I changed the "clean up" code in ogg_stream_pagein to
> say:
> 
> if (lr>4096)
> 
> instead of:
> 
> if (lr>8192)
> 
> This prevents lacing_vals from ever getting bigger than approximately
> 32K.
> 
> Is this kosher?

Yes.  This has been tuned slightly better than it used to be in recent
CVS, and the code will be replaced entirely once I roll libogg2
improvements into Tremor.

Monty
--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'tremor-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the Tremor mailing list