|
Yes and no... If you only use one parser instance
to parse a document, then yes - the single threaded build will always be faster,
since it does not require the overhead of locking/unlocking mutual exclusion
objects.
These synchronisation objects are only required
to protect global data from beeing corrupted if you have multiple parsers
running in multiple threads.
It's up to the application using Xerces-C++ to
benefit from parsing in separate threads. If your application is single-threaded
it is pointless compiling Xerces-C++ to be thread safe. (And, as you say, you
will even get a performance loss.)
Regards,
Martin
|
- Single threaded built faster then Multithreaded?? Ritesh Garodia
- Martin Kalen
