RE: [PATCH 0/5] cramfs refresh for embedded usage

Nicolas Pitre <[email protected]>
Newsgroups org.kernel.vger.linux-embedded,org.kernel.vger.linux-fsdevel,org.kernel.vger.linux-kernel
Message-ID <[email protected]>
On Wed, 16 Aug 2017, Chris Brandt wrote:

> I made an example once were all the graphics were RAW and uncompressed 
> and marked as XIP in AXFS. The result was a large saving of RAM because 
> as the graphics framework (DirectFB) would copy directly from Flash 
> whenever it needed to do a background erase or image re-draw (button press 
> animations).
> 
> Same went for playing MP3 files. The MP3 files were XIP in flash, so 
> mpg123 pulled from flash directly.

I wouldn't have expected mpg123 to mmap() its input files though.
If you use read() and not mmap() then you don't get the full benefit.


Nicolas
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.