[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: XML Schema: "Best used with the ______ tool"

  • From: Dennis Sosnoski <dms@s...>
  • To: Michael Kay <mike@s...>
  • Date: Sun, 30 Nov 2008 08:02:35 +1300

Re:  XML Schema: "Best used with the ______ tool"
Michael Kay wrote:
>> If you'd like to try a comparison, I have an 
>> earthquake data set and schema I use for comparing web 
>> service stack performance. ...
>>     
>
> I'd be happy to give it a try if the logic isn't too complex (it doesn't
> sound it, unless the geographical calculations are very complex).
>
> Is the server keeping the data in memory, or parsing it afresh each time?
>   

Great! I'm traveling for the next couple of days, but when I get a 
chance I'll send you directly a copy of one of the Java versions, with 
the data set and full details.

The Java code keeps all the data in memory, organized by area and 
ordered by date/time. In order to minimize the processing time (since 
it's intended to compare the actual XML marshalling/unmarshalling 
performance) it checks rectangle intersections between the query 
lat/long range and that of each area to determine which areas need to be 
checked, then does binary searches through the ordered array of quakes 
within an area for the start/end times in the query. Once it has the 
range of possible matching quakes, it does the final checks on lat/long 
and magnitude for each individual quake. I suspect the binary search 
part is more than you want to take on in XSLT, so we can try comparisons 
both with the search part enabled in the Java code and with it disabled 
(instead doing a check on each quake within the area).

  - Dennis


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.