[Home] [By Thread] [By Date] [Recent Entries]


Rich Salz wrote,
> > Well, assuming SAX-style parsing that is: just deliver entity
> > expansions as a separate characters() callback ... no copies or
> > writes needed at all.
>
> The intent was to show in-place expansion can be way efficient.

Except that it doesn't show that, because every entity expansion 
involves copying the following text forward. I'd be astonished if that 
wins compared with delivering expansions SAX-style. I'd even be 
surprised if it wins against non-in-place expansion to a separate 
buffer (assuming the copy was optimized away for the no entity refs 
case).

Cheers,


Miles

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member