diff options
author | Aidan MacDonald <amachronic@protonmail.com> | 2022-04-02 15:43:02 +0100 |
---|---|---|
committer | Aidan MacDonald <amachronic@protonmail.com> | 2022-11-16 06:47:38 -0500 |
commit | 5fdd491ceb6a440403cbf97eb33d6dcc80be31a8 (patch) | |
tree | a2fd5915504ef5df92bd3c6c16917f41ddb4bd94 /lib/rbcodec/codecs/aac.c | |
parent | dfa1539b13c47e02fa96797a1761211ccefde860 (diff) | |
download | rockbox-5fdd491ceb6a440403cbf97eb33d6dcc80be31a8.tar.gz rockbox-5fdd491ceb6a440403cbf97eb33d6dcc80be31a8.zip |
playlist: reduce memory usage for loading playlists
There's probably little benefit to using core_alloc_maximum() for
loading playlists since they are parsed incrementally. I/O speed
does not increase with increased read sizes beyond a certain point.
Read by 32 KiB chunks since that is what the buffering thread does.
Fall back to core_alloc_maximum() if a small allocation fails so
that buflib will try harder to free up space.
Change-Id: I08b94317d12b98af09ef2bd84aa1195c4c51d1b1
Diffstat (limited to 'lib/rbcodec/codecs/aac.c')
0 files changed, 0 insertions, 0 deletions