Mercurial > geeqie.yaz
diff src/image-load.c @ 1512:0a1266bde95b
dropped read_buffer options - they don't have any significant effect
author | nadvornik |
---|---|
date | Sat, 04 Apr 2009 21:53:12 +0000 |
parents | 5f49f305a6b6 |
children | 24a12aa0cb54 |
line wrap: on
line diff
--- a/src/image-load.c Sat Apr 04 21:14:34 2009 +0000 +++ b/src/image-load.c Sat Apr 04 21:53:12 2009 +0000 @@ -22,6 +22,9 @@ #include <fcntl.h> #include <sys/mman.h> +#define IMAGE_LOADER_READ_BUFFER_SIZE_DEFAULT 4096 +#define IMAGE_LOADER_IDLE_READ_LOOP_COUNT_DEFAULT 1 + /**************************************************************************************/ /* image loader class */ @@ -79,8 +82,8 @@ il->idle_done_id = -1; - il->idle_read_loop_count = options->image.idle_read_loop_count; - il->read_buffer_size = options->image.read_buffer_size; + il->idle_read_loop_count = IMAGE_LOADER_IDLE_READ_LOOP_COUNT_DEFAULT; + il->read_buffer_size = IMAGE_LOADER_READ_BUFFER_SIZE_DEFAULT; il->mapped_file = NULL; il->requested_width = 0;