| 158 | } |
| 159 | |
| 160 | CachedConverter *CachedConverter::defaultCachedConverter() |
| 161 | { |
| 162 | static CachedConverterPtr c = nullptr; |
| 163 | if( !c ) |
| 164 | { |
| 165 | const char *m = getenv( "IECOREGL_CACHEDCONVERTER_MEMORY" ); |
| 166 | int mi = m ? boost::lexical_cast<int>( m ) : 500; |
| 167 | c = new CachedConverter( 1024 * 1024 * mi ); |
| 168 | } |
| 169 | return c.get(); |
| 170 | } |