[
Lists Home |
Date Index |
Thread Index
]
Hi Gavin,
> As I noted, the speedup is most likely because the cost of building
> a DOM is usually in object construction, rather than in parsing.
Ahh, I see. Yes, I take it back, Patrick's observations *are* an
effective demonstration that building smaller DOMs takes substantially
less time than building larger DOMs from the same source document and
therefore that pre-processing to remove (or turn into text nodes) data
that you're not interested in is a good tactic.
Cheers,
Jeni
---
Jeni Tennison
http://www.jenitennison.com/
|