Hi,

Currently 1.5 uses DiskDataStore to store pages' bytes at the end of
the request processing.
In 1.4 org.apache.wicket.protocol.http.pagestore.DiskPageStore.isSynchronous()
is by default 'false', i.e. it starts PageSavingThread to store them
asynchronously. That means the worker thread doesn't wait for the
write to the disk.
DiskDataStoreTest uses AsynchronousDataStore and reads and writes with
20 threads and it seems stable. I also tested it in our application
and it works fine.
The benefit is that it saves several milliseconds for each request.
Currently it is possible to use it by setting custom
PageManagerProvider but I think this should be the default. We can add
boolean flag in IStoreSettings with which the user can disable it if
she want.

What do you think ?

-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

Reply via email to