1
0
Fork 0
forked from len0rd/rockbox

"waste" a bit more RAM on targets with more than 8MB so more directories can be opened at the same time (most obvious when you have really deep directory trees)

closes FS#6410, FS#6512, FS#6514


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18234 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jonathan Gordon 2008-08-10 12:46:15 +00:00
parent 8c913fb22b
commit eb0137fcb5
2 changed files with 8 additions and 0 deletions

View file

@ -27,7 +27,11 @@
#include "dir.h" #include "dir.h"
#include "debug.h" #include "debug.h"
#if ((defined(MEMORYSIZE) && (MEMORYSIZE > 8)) || MEM > 8)
#define MAX_OPEN_DIRS 16
#else
#define MAX_OPEN_DIRS 8 #define MAX_OPEN_DIRS 8
#endif
static DIR_UNCACHED opendirs[MAX_OPEN_DIRS]; static DIR_UNCACHED opendirs[MAX_OPEN_DIRS];

View file

@ -49,7 +49,11 @@
#define DIRCACHE_BUILD 1 #define DIRCACHE_BUILD 1
#define DIRCACHE_STOP 2 #define DIRCACHE_STOP 2
#if ((defined(MEMORYSIZE) && (MEMORYSIZE > 8)) || MEM > 8)
#define MAX_OPEN_DIRS 16
#else
#define MAX_OPEN_DIRS 8 #define MAX_OPEN_DIRS 8
#endif
static DIR_CACHED opendirs[MAX_OPEN_DIRS]; static DIR_CACHED opendirs[MAX_OPEN_DIRS];
static struct dircache_entry *fd_bindings[MAX_OPEN_FILES]; static struct dircache_entry *fd_bindings[MAX_OPEN_FILES];