I am working with VTD xml i have a question regarding buffered reuse feature of the VTD xml. What is the advantage of using buffered re-use feature of VTD xml. will ther be any change in memory used or change in performance? can anyone please elaborate on this ?
Thank you for your reply...but it gives the definition of what buffer re usability is...buffer re-usability means The concept is to reuse LC and VTD buffer for XML parsing, instead of allocating every time....
I parsed some XML files using both setDoc and setDoc_BR methods. In my results, i observed that the performance(parsing time) of setDoc_BR is a little better than setDoc. What i'm faliing to analyze is how the buffer re-use concept is affecting the performance of the parser. For example, you want to parse and XML file. You take the file into a buffer(byte array) and assign it to an instance of VTDGen class using the setdoc or setdoc_br methods and parse the file. When you are parsing a single XML file, where does the concept of buffer re-use come?? Coz the one XML file is parsed once and VTD records are put in the buffer and that's it. If you have 2 XML files, the second XML file can re-use the buffer allocated by the application but when its just 1 file that is being parsed, why is the performance better??
If we think that the buffer allocated for the XML file is being re-used for holding the VTD records, what will happen when we want to modify or work with the XML file??Because VTD XML requires that the XML file is in memory. So it looks like that buffer cannot be reused.Can anybody figure out what exactly is going on here with buffer reuse??
I would have thought the people at the VTD site were far more qualified to explain that. After all, I have just read the same paragraph that you read. Did you not try asking them? Did they not respond?