MCPcopy Create free account
hub / github.com/ImageEngine/cortex / defaultCachedConverter

Method defaultCachedConverter

src/IECoreGL/CachedConverter.cpp:160–170  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

158}
159
160CachedConverter *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}

Callers 2

testMethod · 0.80
testDefaultInstanceMethod · 0.80

Calls 1

getMethod · 0.45

Tested by 2

testMethod · 0.64
testDefaultInstanceMethod · 0.64