Changeset 1080

Show
Ignore:
Timestamp:
12/08/07 09:04:53 (5 years ago)
Author:
lmajano
Message:

Optimization tweaks.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • coldbox/trunk/src/system/interceptors/ses.cfc

    r1078 r1080  
    3030                        /* Verify the properties */ 
    3131                        if( not propertyExists('configFile') ){ 
    32                                 throw('The configFile property has not been defined. Please define it.','','interceptors.ses.configFilePropertyNotDefined'); 
     32                                throw('The configFile property has not been defined. Please define it.','','interceptors.ses.invalidPropertyException'); 
    3333                        } 
    3434                         
     
    201201                <cfset var requestString = arguments.action /> 
    202202                <cfset var routeParams = arrayNew(1) /> 
     203                <cfset var routeParamsLength = 0> 
    203204                <cfset var thisRoute = structNew() /> 
    204205                <cfset var thisPattern = "" /> 
     
    211212                <cfset var rc = event.getCollection()> 
    212213                <cfset var _courses = get_courses()> 
     214                <cfset var _coursesLength = ArrayLen(_courses)> 
    213215                 
    214216                <!--- fix URL variables (IIS only) ---> 
     
    232234                <!--- Compare route to URL ---> 
    233235                <!--- For each route in config ---> 
    234                 <cfloop from="1" to="#arrayLen(_courses)#" index="i"> 
     236                <cfloop from="1" to="#_coursesLength#" index="i"> 
    235237                        <cfset arrayClear(routeParams) /> 
    236238                        <cfset thisRoute = _courses[i] /> 
     
    258260                         
    259261                </cfloop> 
     262                 
    260263                <!--- Populate the params structure with the proper parts of the URL ---> 
    261                 <cfloop from="1" to="#arrayLen(routeParams)#" index="i"> 
     264                <cfset routeParamsLength = arrayLen(routeParams)> 
     265                <cfloop from="1" to="#routeParamsLength#" index="i"> 
    262266                        <cfset "params.#routeParams[i]#" = mid(requestString,match.pos[i+1],match.len[i+1]) /> 
    263267                </cfloop>