Simple : OSCache with a session scoped cache entry. This will drop the run
time down to about 1ms.

Cheers,
Mike

On 12/1/03 9:36 PM, "Robert Nicholson" ([EMAIL PROTECTED]) penned the
words:

> That is flabbergasting. Couldn't you cache the list when the user logs
> in?
> 
> Why don't you take a look at the template and see if you can nail down
> what's causing the delays assuming you haven't done that already of
> course. If it's user specific what does countries method look like?
> 
> On Sunday, January 12, 2003, at 01:38  AM, Kirk Rasmussen wrote:
> 
>> Happy new year everyone!  I have a simple question about the
>> <webwork:iterator> tag and performance using WW 1.2.1.
>> 
>> I have this list of countries that contains 245 entries.  When I
>> execute the following fragment, it takes about 15 seconds to execute
>> the iterator loop by itself.  Any of you WW gurus have some pointers
>> on making it faster?  I can't simply cache the select list because the
>> form is for an address book so the selected value is user specific.
>> 
>> <%@ taglib uri="webwork" prefix="ww" %>
>> <%@ taglib uri="webwork" prefix="ui" %>
>> <%
>>     long start, end = -1;
>> %>
>> 
>>     <table width="100%">
>>     <tr>
>>     <!-- start cell with webwork components -->
>>     <ww:action name="'CountriesList'" id="countrieslist"/>
>> <% start = System.currentTimeMillis(); %>
>>     <ui:select label="'Country'" name="'country'"
>> list="@countrieslist/countries" listKey="'countryCode'"
>> listValue="'description'"/>
>> <% end = System.currentTimeMillis(); %>
>>     <!-- end cell with webwork components -->
>>     </tr>
>>     </table>
>> <p>
>> Execution Time=<%= ((double)end - start) / 1000.0 %> sec
>> </p>
>> 
>> Thanks,
>> Kirk Rasmussen
>> Lucasfilm Ltd.
>> 
>> 
>> -------------------------------------------------------
>> This SF.NET email is sponsored by:
>> SourceForge Enterprise Edition + IBM + LinuxWorld  Something 2 See!
>> http://www.vasoftware.com
>> _______________________________________________
>> Opensymphony-webwork mailing list
>> [EMAIL PROTECTED]
>> https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
> 
> 
> 
> -------------------------------------------------------
> This SF.NET email is sponsored by:
> SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
> http://www.vasoftware.com
> _______________________________________________
> Opensymphony-webwork mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork



-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to