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.

Why in-situ parser ?

in-situ parser
0
Posted

Why in-situ parser ?

0

It saves a lot of copy. Strings are copied only when containing escape characters or when the text is fragmented because of comments, CDATA or Processing Instructions. The strings are referenced with a pair of pointers (begin, end) and are not null terminated. Converting values to null terminated strings would be a terrible waste of time when strings are numerical values or symbolic constants that will be stored as numbers.

Related Questions

What is your question?

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