ColdFusion 10 SLOW with ExpandPath()
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.
Any thoughts on this? Is it a CF issue or a TomCat issue?
