DocBook 5 RNG Performance
Posted: Sat Mar 03, 2007 8:56 am
I've noticed some performance issues with regard to using the RelaxNG DocBook 5 schema, and they seem unusual.
I know the DocBook 5 RNG schema is fairly large, so having some initial slowdown is expected. But what I'm getting is rather unexpected. Anytime I open up a DocBook 5 document, Oxygen freezes up for several seconds, presumably as it parses the schema. However, I would have expected it to recognize that the two (or 3, 4, 5, etc) documents use the same schema, and it therefore doesn't need to load it again.
What's worse is that if I blow past the heap and hit virtual memory, even switching from one document to another takes forever, likely provoking disc access and more schema processing.
Now, I am using the DocBook 5 that comes with Oxygen 8.1. I've checked the default catalog, so Oxygen shouldn't be running out to the web to find the schema; it should be on disc. And it definitely shouldn't be reloading a schema it already loaded for a different document.
Is there some setting I can use to improve performance? Because it's making me want to switch back to DocBook 4.x, and I really don't want to.
This happens on every machine I use Oxygen on, even the bug dual 2.66 Xeon 3GB-RAM monster I use at work (of course there, the pause isn't terribly long).
I know the DocBook 5 RNG schema is fairly large, so having some initial slowdown is expected. But what I'm getting is rather unexpected. Anytime I open up a DocBook 5 document, Oxygen freezes up for several seconds, presumably as it parses the schema. However, I would have expected it to recognize that the two (or 3, 4, 5, etc) documents use the same schema, and it therefore doesn't need to load it again.
What's worse is that if I blow past the heap and hit virtual memory, even switching from one document to another takes forever, likely provoking disc access and more schema processing.
Now, I am using the DocBook 5 that comes with Oxygen 8.1. I've checked the default catalog, so Oxygen shouldn't be running out to the web to find the schema; it should be on disc. And it definitely shouldn't be reloading a schema it already loaded for a different document.
Is there some setting I can use to improve performance? Because it's making me want to switch back to DocBook 4.x, and I really don't want to.
This happens on every machine I use Oxygen on, even the bug dual 2.66 Xeon 3GB-RAM monster I use at work (of course there, the pause isn't terribly long).