Re: Really slow code

2012-07-24 Thread Igor Vaynberg
cache it in request cycle's metadata -igor On Tue, Jul 24, 2012 at 8:18 PM, Brown, Berlin [GCG-PFS] berlin.br...@primerica.com wrote: With code like this, I have a model and within the 'load' method, I am making a slower call that I don't want to call to get the data again. I may need the

RE: Really slow code

2012-07-24 Thread Brown, Berlin [GCG-PFS]
You have any more specifics or an example? Is there a metadata class? -Original Message- From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com] Sent: Tuesday, July 24, 2012 1:34 PM To: users@wicket.apache.org Subject: Re: Really slow code cache it in request cycle's metadata -igor

Re: Really slow code

2012-07-24 Thread Igor Vaynberg
To: users@wicket.apache.org Subject: Re: Really slow code cache it in request cycle's metadata -igor On Tue, Jul 24, 2012 at 8:18 PM, Brown, Berlin [GCG-PFS] berlin.br...@primerica.com wrote: With code like this, I have a model and within the 'load' method, I am making a slower call that I

RE: Really slow code

2012-07-24 Thread Brown, Berlin [GCG-PFS]
To: users@wicket.apache.org Subject: Re: Really slow code static class MetaDataKeyMyData MYDATA=new MetaDateKeyMyData() {}; ^ thats the type-safe singleton key you use to acces the metadata store checking for metadata MyData data=RequestCycle.get().getMetaData(MYDATA); ^ null means none writing

Re: Really slow code

2012-07-24 Thread Dan Retzlaff
[mailto:igor.vaynb...@gmail.com] Sent: Tuesday, July 24, 2012 3:20 PM To: users@wicket.apache.org Subject: Re: Really slow code static class MetaDataKeyMyData MYDATA=new MetaDateKeyMyData() {}; ^ thats the type-safe singleton key you use to acces the metadata store checking for metadata