Here it is my last easy patch, It caches the getProviderIsInClass it seems to be called a lot, it seems that the first cache of translateURI..JCE is not enougth. All in All in my test cases it seems to speed the things a little, from 1.4sec to 10ms, but i think is not a great thing in a bigger case but everythings helps.
Last patch wasn't soo spectacular, but the first second to last was pretty good again. Got a build on my laptop from 14.11 to 11.41 :-)
I was working on the laptop, so results aren't too reliable though.
Oh.. both are in CVS. Don't know if Berin will want to do yet another release, I'll leave it up to him. I really have to figure out how to do one at some point so poor Berin doesn't have to do all of them ;-)
Can anyone else run a couple tests too and confirm some of the finding? Scott?
That is my last easy patch, I will try to go inside Canonicalizer20010315Excl because is more or less the 80% of the time of my execution. If anyone has some idea of what to look for, please tell me.
I have taken quite a few big looks at C14N trying to speed it up, but it's amazingly complex. I think the only way to get some real speed improvements is by redesigning the algorithm, but I don't even know if that's feasible :)
I have tried to code with proper final declarations and keeping object generation out of loops, but that didn't knock anything decent off, so I reverted the code as it was even more unreadable afterwards.
The other thing is that I don't want to introduce too major changes in this version. Ideally the big changes will happen in the next version, which shouldn't take too long anymore.. (Yes I am aware I have been saying that for months.. I always underestimate the desire for bureaucracy in big companies ;-) )
Erwin
Erwin