The problem is hasBeenModified() causing trashing of the cache due to the first call
always returning false. I have updated this method to not return true when
cachedLastModified is uninitialized and the startup time is back down to 14s.
| public boolean hasBeenModified() throws IOException
| {
| boolean hasBeenModified = false;
| long last = getLastModified();
| if (cachedLastModified != last)
| {
| hasBeenModified = cachedLastModified != 0;
| cachedLastModified = last;
| }
| return hasBeenModified;
| }
|
I have created a 2.0.0.Beta2 release of the vfs.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3994908#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...