Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How does VTD-XML achieve random access?

achieve vtd-xml
0
Posted

How does VTD-XML achieve random access?

0

By using Location Caches (LC), which are essentially hierarchical element directories. LCs are allocated on a per-level basis; i.e., the same LC indexes all elements of the same nesting depth. A LC entry is a 64-bit integer whose upper 32 bits is the index value of a VTD record of an element (starting tag), and whose lower 32 bits point to the LC entry corresponding to the first child element. The motivation is to stick with the winning strategy of VTD: constant token length and inherent persistence. The result: LC cost is about *10%* of the total VTD-XML processing cost.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123