macromedia.coldfusion.cfml_general_discussion
[Top] [All Lists]

Re: convert text to list

Subject: Re: convert text to list
From: "splitzer"
Date: Thu, 16 Aug 2007 22:25:30 +0000 UTC
Newsgroups: macromedia.coldfusion.cfml_general_discussion
Simon, i tried what you provided. But, i dont really see the imrovment in 
performance, maybe i'm doing something wrong. 

 Like i've said, i'm using the list as an autosuggest for cfinput. 

 The way i have set it up:
     <cffunction 
         name="colleges" 
         access="remote" 
         returntype="any" 
         >
     
         
         <cfargument name="term" type="string" required="true">
         
         <cffile file="#ExpandPath('\')#\cfc\test3.txt" action="read" 
variable="listColleges">
         <!--- <cfset fileList = ListChangeDelims(listColleges, "," , Chr(10))> 
--->
         
         <cfset bar = createObject("java", 
"java.lang.String").init(listColleges).split("\n")>
         
         <cfreturn bar>
     </cffunction>

 I dont see any major difference in speed of autosuggest, it is still very 
slow. 


<Prev in Thread] Current Thread [Next in Thread>