forked from len0rd/rockbox
Don't force double-buffering for sd devices. They apparently are not faster with it, ans possibly actually slower
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20999 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
106d2ebd07
commit
fba4be213f
1 changed files with 7 additions and 1 deletions
|
@ -53,10 +53,16 @@
|
|||
* wouldn't buy us anything.
|
||||
* Due to being the double-buffering system used, using a smaller write buffer
|
||||
* ends up being more efficient. Measurements have shown that 24k to 28k is
|
||||
* optimal
|
||||
* optimal, except for sd devices that apparently don't gain anything from
|
||||
* double-buffering
|
||||
*/
|
||||
#define READ_BUFFER_SIZE (1024*64)
|
||||
|
||||
#if (CONFIG_STORAGE & STORAGE_SD)
|
||||
#define WRITE_BUFFER_SIZE (1024*64)
|
||||
#else
|
||||
#define WRITE_BUFFER_SIZE (1024*24)
|
||||
#endif
|
||||
|
||||
#define ALLOCATE_BUFFER_SIZE (2*MAX(READ_BUFFER_SIZE,WRITE_BUFFER_SIZE))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue