renderView performance problem

Hello,

this is more Coldbox related, but I found it in our current Contentbox project. I realized that renderView takes in some cases a lot of time (around 18ms, this is a lot since not much happens in our view)

I found that in system/plugins/Renderer.cfc in discoverViewPaths() which is called by RenderView() uses a file check:

// Check for view helper convention
dPath = getDirectoryFromPath( refMap.viewPath );
if( fileExists(expandPath( refMap.viewPath & “Helper.cfm”)) ){
refMap.viewHelperPath = refMap.viewPath & “Helper.cfm”;
}
// Check for directory helper convention
else if( fileExists( expandPath( dPath & listLast(dPath,"/") & “Helper.cfm” ) ) ){
refMap.viewHelperPath = dPath & listLast(dPath,"/") & “Helper.cfm”;
}

I’m wondering if caching could be implemented here for the file check, otherwise it will generate a lot of IO on high traffic apps.

Thanks,

Gunnar

Gunnar, check the lines above it:

They are cached. Discovery is only done once

signature0.jpg

Luis F. Majano
CEO
Ortus Solutions, Corp
www.ortussolutions.com

ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Blog: http://www.luismajano.com
IECFUG Manager: http://www.iecfug.com

Social: twitter.com/lmajano facebook.com/lmajano