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

Re: Exploiting multi-core CPUs during XML parsing


java multi core

I thought about that (specifically the use of the facilities in the nio
package), but I figured that the original request was targeted at
environments other than Java.  Right now, Java's direct support for
multi-core CPUs is a little lacking (ref the parser thread from last
week or so).  If it was Java, I agree, you could use the approach you
suggest.

Is the JVM really smart enough to take appropriate advantage of a
filesystem that provided the capability Sean wanted?  In the perfect
world, you would have the kernel taking care of buffering/caching the
data for you so that it would be available to multiple user-process
threads, but as far as most OS's are concerned, they just see it as
another CPU.  On a somewhat tangential note, there was an article in the
May IEEE Computer magazine about the issues facing OS's around these new
chips [1].  Based on what I remember reading, I don't think you'd really
notice the difference in Java on today's OS platforms.

ast

[1] http://csdl2.computer.org/persagen/DLAbsToc.jsp?resourcePath=/dl/mags/co/&toc=comp/mags/co/2005/05/r5toc.xml&DOI=10.1109/MC.2005.160

On Sat, 2006-04-01 at 10:28, Elliotte Harold wrote:
> What about memory mapped files? If you can treat the file as an array, 
> it's just as easy to move backwards through the array as forwards.
> 
> For network applications you might have to have three threads: one to 
> fill a buffer without parsing, one to parse from the start of the 
> buffer, one to parse from the back once the buffer is fully loaded. 
> Presumably the fill thread could outrun the other two.
-- 
Join me in Dubrovnik, Croatia on May 8-10th when I will be speaking at
InfoSeCon 2006.  For more information, see www.infosecon.org.

***************************************************************************************************
The information in this email is confidential and may be legally privileged.  Access to this email by anyone other than the intended addressee is unauthorized.  If you are not the intended recipient of this message, any review, disclosure, copying, distribution, retention, or any action taken or omitted to be taken in reliance on it is prohibited and may be unlawful.  If you are not the intended recipient, please reply to or forward a copy of this message to the sender and delete the message, any attachments, and any copies thereof from your system.
***************************************************************************************************

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-2013 All Rights Reserved.