Changeset 779

Show
Ignore:
Timestamp:
05/12/2008 10:23:26 PM (22 months ago)
Author:
peterfarrell
Message:

- Improved performance

Location:
framework/1-6-0/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • framework/1-6-0/trunk/CHANGELOG

    r775 r779  
    140140(2008-03-15 pfarrell) 
    141141 
     142* ColdspringProperty Improved Performance 
     143Improved performance of the ColdspringProperty: 
     144- Used java.lang.StringBuffer for string concatenation 
     145- Used hash instead of UUID for name of CFC in dynamic method generation (15-18% faster than UUID) 
     146 
    142147* Deprecated mach-ii.cfm 
    143148All supported CF engines now support Application.cfc.  The mach-ii.cfm bootstrapper for 
     
    156161This improves performance a drastically fewer number of BeanUtils are created during 
    157162the loading of the framework. 
     163(2008-05-09 pfarrell) 
  • framework/1-6-0/trunk/properties/ColdspringProperty.cfc

    r778 r779  
    631631                <cfset var beanName = "" /> 
    632632                <cfset var cfcData = CreateObject("java", "java.lang.StringBuffer") /> 
    633                 <cfset var cfcName = Replace(CreateUUID(), "-", "", "all") /> 
     633                <cfset var cfcName = "" /> 
    634634                <cfset var cfcDirectory = GetDirectoryFromPath(GetCurrentTemplatePath()) /> 
    635635                <cfset var autowireCfc = "" /> 
     
    654654                <cfset cfcData.append('</cfcomponent>') /> 
    655655                 
     656                <!--- Create a name for the CFC (Hash() is faster than UUID) ---> 
     657                <cfset cfcName = Hash(cfcData.toString()) /> 
     658                 
    656659                <!--- Write the cfc data to a temp file ---> 
    657660                <cffile action="write" output="#cfcData.toString()#" file="#cfcDirectory##cfcName#.cfc" />