Menu

#3 Thread-safety

closed
nobody
5
2009-01-27
2009-01-27
Anonymous
No

Hi,

Thank you for this library. The performance is outstanding.

But I need to inspect a XML document in a multi-threaded environment - basically, having multiple threads processing the information in different ways.

VTDNav isn't thread-safe, but your library doesn't have a simple way of creating multiple VTDNav from the same parsed VTDGen object.

It would be great if:
-VTDGen could be called multiple times to create several VTDNav instances.
-Or you could just implement the VTDNav.clone() method. That would do the trick.

Without it, I will need to implement some kind of work-around to create several VTDNav instances of the same XML document.

Regards,
Joao Fonseca

Discussion

  • jimmy zhang

    jimmy zhang - 2009-01-27
    • status: open --> closed
     
  • jimmy zhang

    jimmy zhang - 2009-01-27

    Hi, very interesting proposal... do you run multiple processors/cores to improve performance?
    can you think a bit more on what you would like to see in terms of API, thread safety, etc?
    als you are welcome to join the vtd-xml-users discussion list and we can discuss this a bit more in
    detail..