Page 1 of 1

Painful speed with schema diagrams

Posted: Mon Jun 11, 2007 5:17 pm
by newt
I'm seeing painfully slow schema diagrams (both XSD and RNG although I only really care about RNG). We're working on customisations to the current DocBook 5 schemas for our inhouse use.

Loading up the DocBook schema (docbook.rng) on my macbook pro (2gz, 1gig ram) with Oyxgen given up 1gig of RAM. The schema takes a fair while to load (15 secs maybe) but the diagram takes about 5 seconds minimum to scroll any distance at all.

Any idea why this might be case and is there anything we can do about this? Currently, this has me casting about for another tool after a few years happy use with Oxygen.

cheers

nic

Posted: Tue Jun 12, 2007 9:57 am
by george
Dear Nic,

I can reproduce some performance issues when editing but not when browsing the diagram - do you gat problems when you just browse that DocBook schema?
For the editing issues we will look to see where the time is spent and try to find a solution.
As an workaround go to Options->Preferences -- Editor -- Diagram and disable the diagram and related views.

Best Regards,
George

Posted: Tue Jun 12, 2007 11:25 am
by newt
Hi George
Thanks for the speedy response
george wrote:Dear Nic,

I can reproduce some performance issues when editing but not when browsing the diagram - do you gat problems when you just browse that DocBook schema?
It just seems to be large schemas. We have a tiny (90 elements or so) compared to DocBook DTD and that's just fine. We have another large schema that also takes forever. It is only scrolling through the diagram - expanding a referenced element is perfectly fast enough. I'm trying to convince IT to install oxygen on a PC for me so that I can compare Windows and Mac.
george wrote:
For the editing issues we will look to see where the time is spent and try to find a solution.
As an workaround go to Options->Preferences -- Editor -- Diagram and disable the diagram and related views.

Best Regards,
George
Thanks - I hadn't noticed that I could disable the diagram.

Posted: Wed Jun 13, 2007 5:06 pm
by adrian
Hello,

For improving the performance of the schema browsing you can try to set the value of the runtime system property "apple.awt.graphics.UseQuartz" to "false" in the "info.plist".

To accomplish this, follow the steps:
1. In Finder go to Oxygen installation directory and trigger the contextual menu on the Oxygen launcher (Oxygen.app).
2. From the menu choose "Show package contents". This should open another window.
3. In the new window enter the "Contents" directory and edit "info.plist" either with the "Property List Editor" or a text editor.
4. In the Java/Properties section add the property mentioned above with the value "false".

You can read more about this at:
http://developer.apple.com/documentatio ... rties.html

We have also improved the performance when editing large RNG schemas and the fix will be available in the next release.

Regards,
Adrian.

Posted: Wed Jun 13, 2007 5:23 pm
by newt
adrian wrote:Hello,

For improving the performance of the schema browsing you can try to set the value of the runtime system property "apple.awt.graphics.UseQuartz" to "false" in the "info.plist".
Perfect! Orders of magnitude faster
Thank you

cheers

nic