Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


RE: [xml-dev] XML Schema: "Best used with the ______ tool"

From: "Michael Kay" <mike@--------.--->
To: "'Boris Kolpackov'" <boris@-------------.--->
Date: 11/28/2008 3:30:00 PM
In the example I mentioned 
> in my previous email, even if the XSLT/XQuery processor can 
> figure out at the query compile time (based on the schema 
> information) that the 'people' element can only contain the 
> 'person' element and skip the element name check (I don't 
> know if there are any production implementations that do 
> this), you will presumably still need a map lookup to get to 
> the "age" attribute.
> I don't think this can be anywhere close to a single direct 
> memory access in case of data binding.

I think you'll find it's close enough. As far as Saxon is concerned, I put
further optimization of this kind of thing (for example, allocating required
attributes to fixed positions and accessing them by direct offset) on the
back burner some years ago because profiling showed that the serial search
for an attribute simply wasn't showing up on the radar. It could be done if
it was necessary, but it's not necessary.
> 
> 
> I agree with Dennis here in that XQuery can be usable when 
> you need to access a small subset of an XML document. 
> However, when one needs to access most of the data, or, 
> worse, access the same data many times, data binding will 
> have speed/memory advantage.

Evidence please! I don't see any reason why it should.

(There are still people who maintain that coding in assembler is faster than
in C, or that coding in C is faster than in Java. All the evidence is that
there are very few people with the skills in the lower-level language to
beat the optimizers for the higher-level language. It can be done if you try
hard enough, but not by the average programmer.)
> 
> Then there is the whole aspect of interfacing with the rest 
> of the world. Assembling text queries from bits and pieces 
> that come from different sources and then unpacking the 
> results for further processing does not sound like something 
> that is easy to use.
> 
Sounds a lot easier than coding it in Java.

Michael Kay
http://www.saxonica.com/


_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe@l...
subscribe: xml-dev-subscribe@l...
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php



transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent