Xalan does not do parallel processing of a single transform. That could be
interesting for certain transformations when the processor can determine
that things can be done out-of-sequence, but it would still need to
re-assemble the pieces in sequence. That's a great research topic, but I
don't know of any current XSLT processor which implements such a scheme.
I'm sure there are functional languages which support parallel processing,
but they've been around a bit longer than XSLT. It's not an easy thing to
do -- witness the problems Intel is having with the compilers for its IA-64
chips.
On the other hand, if you can't see any point to an XSLT processor which
allows multiple concurrent processing threads, then you need to get out
more. The ThreadSafe sample just uses the same source XML and stylesheet
to test that the in-memory representations are pure (read-only) objects and
can safely be shared among multiple threads. You can certainly process
_different_ sets of inputs in the same manner.
Dave
[EMAIL PROTECTED]
yu.edu To: [EMAIL PROTECTED]
cc: (bcc: David N Bertoni/CAM/Lotus)
11/19/2001 Subject: can xalan works concurrently?
(about the
11:24 PM example)
Please
respond to
xalan-dev
Hi, everyone:
I am new to xalan and just begin to read the samples.
I read the ThreadSafe.cpp and find that each thread has a different
output
file! I cannot see any point to do this. ( I guess all the output files are
identical.) If I am wrong, please point out where I go wrong.
I wonder if there is a sample to show how XALAN handles a single input
file to a single output file by using multiple threads (in this way, we can
really gain sth. from using multiple threads).
Any idea or comment on parallel xalan is welcome.
Feng Ning