Some news about your last issue.

Andy B. wrote:

One other thing: I've checked the support archives but did not happen to
see any discussion of what I've run into.  As I think you know, we've
been using XXE 5.3 and when I made the changes needed for XXE 7.2, I did
a timing test on a large XXX document (255 pages with a lot of
what we call interlinear examples).

Frankly, I was expecting XXE 7.2 to load and run faster since I
understood it used Java 8 and I had heard that Java 8 was faster than
Java 6.

I tested this on my Windows computer with no other applications overtly
running.  Here are the (surprising to me, anyway) results:
XXE 5.3 took about 5:00 minutes to load.
XXE 7.2 took about 13:30 minutes to load.

Does this correspond with what you might expect?  Could I be doing
something in the CSS file that is this much slower with XXE 7.3 than
with XXE 5.3?  Could the automatic spelling checking be a factor?


The problem comes from this excerpt of your XXX.css:

---
object:before
{
        color: black;
        font-family: sans-serif;
        font-size: 100%;
        font-style: normal;
        font-weight: normal;
content:text-field(attribute, type, columns, 8, font-size, small,background-color,object-background-color())
        
text(xpath("id(@type)/@before"),background-color,object-background-color())
        ;
}
object
{
        display:inline;
        background-color:object-background-color();
        property-group: typeAttributes();
/*      color: concatenate(xpath("id(@type)/@color"));
        font-family: concatenate("'",xpath("id(@type)/@font-family"),"'");
        font-size: concatenate(xpath("id(@type)/@font-size"));
        font-style: concatenate(xpath("id(@type)/@font-style"));
        font-weight: concatenate(xpath("id(@type)/@font-weight"));
*/
}
object:after
{
        
content:text(xpath("id(@type)/@after"),background-color,object-background-color())
        ;
}
---

More specifically from: text(xpath("id(@type)")). This combination text+xpath+id() is extremely slow.

Using any of the 2 alternatives below, your "JJJ.xml" loads in about 10 *seconds*.

We are not sure to optimize text+xpath+id() because your use case is not very common.




--> Alternative #1 (similar to what you want to get):

---
object:before
{
        color: black;
        font-family: sans-serif;
        font-size: 100%;
        font-style: normal;
        font-weight: normal;
content:text-field(attribute, type, columns, 8, font-size, small,background-color,object-background-color())
        
text(xpath("/xxxxxPaper/styledPaper/xxxxPaper/types/type[@id=current()/@type]/@before"),background-color,object-background-color())
        ;
}
object
{
        display:inline;
        background-color:object-background-color();
        property-group: typeAttributes();
}
object:after
{
        
content:text(xpath("/xxxxxPaper/styledPaper/xxxxPaper/types/type[@id=current()/@type]/@after"),background-color,object-background-color())
        ;
}
---




--> Alternative #2 (may be different from what you want to get):

---
object:before
{
        color: black;
        font-family: sans-serif;
        font-size: 100%;
        font-style: normal;
        font-weight: normal;
content:text-field(attribute, type, columns, 8, font-size, small,background-color,object-background-color());
}
object
{
        display:inline;
        background-color:object-background-color();
        property-group: typeAttributes();
        color: concatenate(xpath("id(@type)/@color"));
        font-family: concatenate("'",xpath("id(@type)/@font-family"),"'");
        font-size: concatenate(xpath("id(@type)/@font-size"));
        font-style: concatenate(xpath("id(@type)/@font-style"));
        font-weight: concatenate(xpath("id(@type)/@font-weight"));

}
object:after
{
        content: "";
}
---


--
XMLmind XML Editor Support List
xmleditor-support@xmlmind.com
http://www.xmlmind.com/mailman/listinfo/xmleditor-support

Reply via email to