[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: How to improve the performance of my matrix additi
On 12.07.2020 22:47, Dr. Roger L Costello costello@xxxxxxxxx wrote:
My application uses lots of matrix operations. I used the SAXON Tool Profile (-TP) option to generate a web page that shows the performance of each of my matrix operations. I found that my matrix addition function is taking an appallingly large amount of time. Below is my matrix addition function. Do you have suggestions on ways to improve its performance? /Roger $N/row[$i]/col[$j]"/> </col> </xsl:for-each> </row> </xsl:for-each> </Matrix> </xsl:function> Does it improve performance if you use <Matrix id="{$name-of-result-matrix}"> <xsl:for-each select="$M/row"> <xsl:variable name="i" select="position()"/> <xsl:variable name="row2" select="$N/row[$i]"/> <row> <xsl:for-each select="col"> <xsl:variable name="j" select="position()"/> <col> <xsl:value-of select=". + $row2/col[$j]"/> </col> </xsl:for-each> </row> </xsl:for-each> </Matrix> ?
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|