General XMetaL Discussion
XMetaL Community Forum › General XMetaL Discussion › XMetaL’s CSS-View: Extremely slow with documents over 500 kb
-
spyro June 8, 2009 at 10:04 am
XMetaL’s CSS-View: Extremely slow with documents over 500 kb
June 8, 2009 at 10:04 amParticipants 1Replies 2Last Activity 13 years, 8 months agoHi there,
I got several XML-files with 1-3 MB in size. When editing text in “Tags On View” with XMetaL 5, the performance decreases dramaticly to about 2-3 letters (!) per second on a Intel Core 2 Duo @ 2.67 GHz with 3 GB RAM. Are there any ways to achieve acceptable working speeds?
spyro
Derek Read June 8, 2009 at 5:48 pm
Reply to: XMetaL’s CSS-View: Extremely slow with documents over 500 kb
June 8, 2009 at 5:48 pmMost Likely Cause – CSS background-color:
A CSS background-color or border property may be defined on elements that take up a “large” portion of your documents. Here “large” means they might contain enough content to span one or more “screens-full” of content (obviously becoming more likely the larger a document is).The solution for this is to remove as many of these CSS properties as possible when they occur on such elements. In this particular case (as editing speed appears slow to the extreme) I would comment them all out (or remove them) and then add them back one by one to find the most obvious culprit.
Sometimes people set background-color:white, or similar, on the root element or $DOCUMENT (one of our special CSS selector extensions) which should not be necessary.
This is a known limitation with our rendering engine that is difficult to address, so we may not do anything about it for quite some time (if ever).
Second Thing to Check – CTM:
This might not be CSS it might be related to your CTM file. If your CTM file displays an XFT form inline (replacing a particular element) and that element appears many times in a document that may be the cause. The issue here is that each copy of XFT instantiates its own Windows Script Host (that same script engine used by XMetaL Author itself). The easiest way to think about this is to equate this to loading a separate copy of Internet Explorer for each XFT appearing in the document (both memory and CPU cycles are eaten up).spyro June 9, 2009 at 8:59 am
Reply to: XMetaL’s CSS-View: Extremely slow with documents over 500 kb
June 9, 2009 at 8:59 amThank you (again!),
I deactivated all borders around container elements and XMetaL runs smooth like a babies ass now. 🙂
The new css is not as good as the unmodified one in terms of clarity but the ability to type text with more than 2 fps is more important to me. 😉Rupert Jung
-
AuthorPosts
- You must be logged in to reply to this topic.