diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2011-11-30 09:01:07 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2011-12-05 17:53:36 +0100 |
commit | 14273e7be2e09b33cb164ed19e3d44c29c249e0e (patch) | |
tree | 7f20a43a9462e95f1b948abdc9c6966d9bdcaa40 /fs | |
parent | 3a7dc44d931497af8680271363e5f055be9c72dc (diff) | |
download | barebox-14273e7be2e09b33cb164ed19e3d44c29c249e0e.tar.gz barebox-14273e7be2e09b33cb164ed19e3d44c29c249e0e.tar.xz |
ramfs: increase chunk size to 8192 bytes
dlmalloc seems to work more efficient with this chunk size.
Copying a bigger file (3MB) takes 271ms vs. 125ms on a i.MX27
board. Even bigger chunk sizes do not further improve performance.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/ramfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ramfs.c b/fs/ramfs.c index db417e13fc..5e352f277a 100644 --- a/fs/ramfs.c +++ b/fs/ramfs.c @@ -30,7 +30,7 @@ #include <linux/stat.h> #include <xfuncs.h> -#define CHUNK_SIZE 4096 +#define CHUNK_SIZE (4096 * 2) struct ramfs_chunk { char *data; |