Rockbox mail archive
Subject: RE: search a string
From: Linus Nielsen Feltzing (linus_at_haxx.se)
On Fri, 6 Sep 2002 14:04:06 -0400, John Wood wrote:
> It you had a stack based at the end of the buffer, then you
> woudln't get fragmentation. I'm not suggesting using the buffer as
> a heap. Most operations (loading a folder, loading a playlist,
> doing a search)are cascading operations and so stack allocation is
> When you allocate stuff on the stack, it'll shrink the cached MP3
> data. It'll just run out of cache sooner than it did previously.
The MP3 buffer is a ring buffer that wraps at the end. Thus, the
unused memory can be anywhere in that buffer, depending on where the
data was loaded the last time.
Linus Nielsen Feltzing, linus_at_haxx.se on 2002-09-06
Page was last modified "Jan 10 2012" The Rockbox Crew