--- recoverjpeg-2.3.old/recoverjpeg.1 +++ recoverjpeg-2.3/recoverjpeg.1 @@ -57,7 +57,7 @@ \-q : Be quiet and do not display anything. .PP \-r \f[I]readsize\f[] : Set the readsize in bytes. -By default, this is 128 MiB. +By default, this is 64 MiB. Using a large readsize reduces the number of system calls but consumes more memory. The readsize will automatically be adjusted to be a multiple of the --- recoverjpeg-2.3.old/recoverjpeg.c +++ recoverjpeg-2.3/recoverjpeg.c @@ -45,7 +45,7 @@ "(default: 6m)\n"); fprintf(stderr, " -q Be quiet\n"); fprintf(stderr, " -r readsize Size of disk reads in bytes " - "(default: 128m)\n"); + "(default: 64m)\n"); fprintf(stderr, " -s cutoff Minimal file size in bytes to restore\n"); fprintf(stderr, " -S skipsize Size to skip at the beginning\n"); fprintf(stderr, " -v Be verbose\n"); @@ -213,7 +213,7 @@ const char *dir_format; int c; - read_size = 128 * 1024 * 1024; + read_size = 64 * 1024 * 1024; block_size = 512; skip_size = 0; begin_index = 0;