summaryrefslogtreecommitdiff
path: root/lib/rbcodec/codecs
diff options
context:
space:
mode:
authorAidan MacDonald <amachronic@protonmail.com>2022-04-02 15:43:02 +0100
committerAidan MacDonald <amachronic@protonmail.com>2022-11-16 06:47:38 -0500
commit5fdd491ceb6a440403cbf97eb33d6dcc80be31a8 (patch)
treea2fd5915504ef5df92bd3c6c16917f41ddb4bd94 /lib/rbcodec/codecs
parentdfa1539b13c47e02fa96797a1761211ccefde860 (diff)
downloadrockbox-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')
0 files changed, 0 insertions, 0 deletions