Thanks Oliver, I'll try to take a look at this to see if it helps. I will
say I agree with Martin though, I think fixing StandardStore as well would
be a good idea. I can only think that people would appreciate a faster
StandardStore. Anyone who has made something that relies on bugs has dug
their own hole. They can download the source and put it back to the buggy
version if they really need to.

Duncan

-----Original Message-----
From: Oliver Zeigermann [mailto:[EMAIL PROTECTED]
Sent: Friday, October 17, 2003 7:10 AM
To: Slide Developers Mailing List
Subject: Re: a bug fix


Hi again,

I attached a first draft of the cache. Maybe you would like to have a 
look at it and test a bit. The code is small and should be very obvious. 
Some more lines of comments are probably missing ;)

Caching of content is omitted for now, as it is much more complicated. A 
LRU map will not do, as I suppose we will want to restrict the size of 
the cache in bytes and not in objects. Any ideas?

I have actually named the store "TxCacheStore", so the Domain.xml 
fragment below should do. If the cache turns out to be working and 
useful we might rethink this...

What about the size of caches? This should be configurable, shouldn't it?

Oliver

P.S.: Martin, would you mind if we listed you as author as well?

Oliver Zeigermann wrote:

> That's fine :)
> 
> As Stefan pointed out you can disable the cache. That was something I 
> had forgotten about. I thought I had to fix the StandardStore first and 
> then continue with fixes for my store that were hard to fix because of 
> inaccurate caching.
> 
> In short: I will do some fixes on the tx file store first and then will 
> do the caching. Hopefully, I will come up with it next week.
> 
> I would propose to leave StandardStore untouched as some implementation 
> might rely on its - sometimes erroneous - behavior. We might call the 
> new one TxCacheStore or so and configure it in Domain.xml like
> 
> ...
> <definition>
>   <store name="tx" classname="org.apache.slide.store.TxCacheStore">
>   ...
> </definition>
> ...
> 
> What do you think?
> 
> Oliver
> 
> Martin Holz wrote:
> 
>> Stefan L�tzkendorf <[EMAIL PROTECTED]> writes:
>>
>>
>>> Hello Oliver,
>>> yes of course is anyone interested! 
>>
>>
>>
>> Me too !!!
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>
>> .
>>
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> .
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to