tracker issue : CF-3198902

select a category, or use search below
(searches all categories and all time range)
Title:

ExpandPath with UNC VERY slow

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): Michael Sprague / Michael Sprague (Michael Sprague)

Created: 05/25/2012

Components: Performance

Versions: 10.0

Failure Type: Performance Issue

Found In Build/Fixed In Build: Final / 282570

Priority/Frequency: Major / All users will encounter

Locale/System: English / Win 2008 Server R2 64 bit

Vote Count: 0

Problem Description:  

We have two identical versions of our application running on the same server - one in CF9 and one in CF10.  We noticed that CF10 is signficantly slower.  To be more specific it is more that 10x slower than CF9.  So, we started experimenting with CFTIMER to narrow down the issue.  Here's what we discovered...
 
<cftimer>
<cfset expandpath('/') />
</cftimer>
 
On ColdFusion 9, this runs in 10-20ms on average.  In ColdFusion 10, it runs in 200-250ms on average. 
 
We use expandpath quite a bit in our applications.  So, pages that load in less than 200ms on CF9 are now loading in 10000+ milliseconds on CF10.
 
It doesn't matter if we change it to this...
 
<cftimer>
<cfset expandpath('/some/folder/path') />
</cftimer>
 
The result is still the same.
 
Note that our application does run from a UNC path because it is load balanced across multiple servers.  So, the expand path will resolve to \\server\folder\file.cfm.   As you can see, this works just fine with CF9 but CF10 can't seem to handle it.

Steps to Reproduce:
Set up a site with a UNC path as the root.  Create a simple CFM file with an expandPath('/') in it.  Look at the time taken.   We are on Windows 2008 with IIS.

Actual Result:
200ms+

Expected Result:
10-20ms

Any Workarounds:   If you put a mapping of "/" to your root directory in the cf admin it works MUCH faster.  But by doing this, you can't have multiple sites running off one CF instance.

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3198902

External Customer Info:
External Company:  
External Customer Name: tSpark
External Customer Email:  
External Test Config: Windows 2008

IIS 7.5

ColdFusion 10

Attachments:

Comments:

More testing... <cffile action="read" file="\\myserver\myweb\www\robots.txt" variable="tester" /> (Hard Coded \\\myserver\myweb\www\robots.txt cffile read): 7ms <cffile action="read" file="#expandpath('/robots.txt')#" variable="tester" /> (Expand Path expandpath('/robots.txt') cffile read): 229ms <cfinclude template= "/robots.txt" /> (cfinclude /robots.txt): 4ms
Comment by External U.
19198 | June 04, 2012 10:14:55 AM GMT
Its says its fixed in build 282570. When and where will this build be available?
Comment by External U.
19199 | July 20, 2012 03:23:52 PM GMT
This will be made available shortly
Comment by Vamseekrishna N.
19200 | July 23, 2012 12:03:41 AM GMT
Is this now available?
Comment by External U.
19201 | August 10, 2012 09:59:04 AM GMT