From: martin-s Date: Tue, 6 Jan 2009 19:01:50 +0000 (+0000) Subject: Add:Core:Made cache size configurable X-Git-Tag: navit-0.5.0.5194svn~3243 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8ece8fd7039384eca15694e1864b3661d877a728;p=profile%2Fivi%2Fnavit.git Add:Core:Made cache size configurable git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@1915 ffa7fe5e-494d-0410-b361-a75ebd5db220 --- diff --git a/navit/navit/file.c b/navit/navit/file.c index 6ca957c..05f98f1 100644 --- a/navit/navit/file.c +++ b/navit/navit/file.c @@ -413,9 +413,9 @@ file_get_os_handle(struct file *file) void file_init(void) { -#if 0 +#ifdef CACHE_SIZE file_name_hash=g_hash_table_new(g_str_hash, g_str_equal); - file_cache=cache_new(sizeof(struct file_cache_id), 2*1024*1024); + file_cache=cache_new(sizeof(struct file_cache_id), CACHE_SIZE); #endif }