mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 10:07:38 -04:00
rgnano: Shrink CODEC and PLUGIN buffer sizes to reasonable sizes
(From 4MB->2MB and 8MB->2MB, respectively) This is a hosted platform with a decent amount of free RAM; however plugins and codecs are dlopen() which doesn't count against those buffers. Furthermore, the rgnano uses musl libc which does NOT implement dlclose() so plugins, codecs, etc stick around in RAM indefinitely even if they are never used again. By shrinking these buffers we free up a bit more headroom for dlopen() to leak, and for the host OS to provide disk caches and whatnot. Change-Id: Ie657bd3b9fc8bd2a1f4bbc07debe3b10538c41c3
This commit is contained in:
parent
c14ea0e01e
commit
14157860b9
1 changed files with 2 additions and 2 deletions
|
@ -51,10 +51,10 @@
|
|||
#define CONFIG_RTC APPLICATION
|
||||
|
||||
/* The number of bytes reserved for loadable codecs */
|
||||
#define CODEC_SIZE 0x400000
|
||||
#define CODEC_SIZE 0x200000
|
||||
|
||||
/* The number of bytes reserved for loadable plugins */
|
||||
#define PLUGIN_BUFFER_SIZE 0x800000
|
||||
#define PLUGIN_BUFFER_SIZE 0x200000
|
||||
|
||||
#define AB_REPEAT_ENABLE
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue