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

From: Nicolas Pitre
Date: Wed Aug 16 2017 - 21:17:53 EST


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