turn default disc thresh back to 100mb

only make temp disc files for very large (>100mb) images since they are
so often left lying around
This commit is contained in:
John Cupitt 2011-11-08 19:32:26 +00:00
parent cb5f199f1c
commit 1129d897ca
3 changed files with 9 additions and 3 deletions

View File

@ -38,6 +38,7 @@
- new format for handling exif tags - new format for handling exif tags
- switch SMALLTILE to 128, 512 was just too big - switch SMALLTILE to 128, 512 was just too big
- oop mode "rd" was not always being used for images - oop mode "rd" was not always being used for images
- added ARRAY interpretation for images
12/10/11 started 7.26.6 12/10/11 started 7.26.6
- NOCACHE was not being set correctly on OS X causing performance - NOCACHE was not being set correctly on OS X causing performance

5
TODO
View File

@ -1,3 +1,8 @@
- finish adding maxpos stuff to im_stats
- can move the whole of mask, plus headers, plus conversion/im_vips2mask and - can move the whole of mask, plus headers, plus conversion/im_vips2mask and
mask2vips to deprecated mask2vips to deprecated

View File

@ -510,9 +510,9 @@ disc_threshold( void )
done = TRUE; done = TRUE;
/* 1mb default. /* 100mb default.
*/ */
threshold = 1024 * 1024; threshold = 100 * 1024 * 1024;
if( (env = g_getenv( "IM_DISC_THRESHOLD" )) ) if( (env = g_getenv( "IM_DISC_THRESHOLD" )) )
threshold = vips__parse_size( env ); threshold = vips__parse_size( env );
@ -1462,7 +1462,7 @@ vips_image_new( void )
* ]| * ]|
* *
* will copy via disc if "fred.tif" is more than 500 Mbytes * will copy via disc if "fred.tif" is more than 500 Mbytes
* uncompressed. The default threshold is 1MB. * uncompressed. The default threshold is 100 MB.
* </para> * </para>
* </listitem> * </listitem>
* <listitem> * <listitem>