1
0
Fork 0
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:
Frank Gevaerts 2009-05-20 16:57:17 +00:00
parent 106d2ebd07
commit fba4be213f

View file

@ -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))