Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - Re: passing in an element as a parameter to a stylesheet [Thread Next] Re: passing in an element as a parameter to a stylesheetTo: NULL Date: 8/2/2007 10:15:00 PM >> I believe that using generate-id() is likely to be much more expensive >> in most processors In Xalan, generate-id() is based on an internal "node ID" number already associated with the node, so it's pretty much int-to-string plus a concatenate (since the ID has to start with a letter). That's probably a bit more expensive than building a nodeset followed by checking its length, but not enough that you're likely to notice it unless it's in the innermost layer of a tight loop. If there's a real-world use-case where it does make a real performance difference, I'd be interested in knowing about it. Either idiom could probably be special-case optimized, but I wouldn't suggest investing coding effort in doing so until that's shown to actually make a difference -- there are lots of other places to invest tuning effort. -- () ASCII Ribbon Campaign | Joe Kesselman /\ Stamp out HTML e-mail! | System architexture and kinetic poetry | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
