Re: [xml] xmlReader: Possibility for cloning an xmlTextReader (or multi-pass reading)
- From: Daniel Veillard <veillard redhat com>
- To: "Eric S. Eberhard" <eric vicsmba com>
- Cc: xml gnome org, Liam R E Quin <liam holoweb net>
- Subject: Re: [xml] xmlReader: Possibility for cloning an xmlTextReader (or multi-pass reading)
- Date: Mon, 8 Apr 2013 09:14:34 +0800
On Mon, Apr 01, 2013 at 02:29:21PM -0700, Eric S. Eberhard wrote:
[...]
What I am saying is you might cringe at -- and instinctively hate
(as I do) -- the idea of just reading it twice == but you might want
to run some benchmarks and see if you really care or not.
Those days, assuming data comes from disk (network is a completely
separate problem you can't guarantee reproduceability of reads) then
the main factor is reading the data from the disk, once it is in the
cache, the second parse is way faster if you don't wait between the two
passes.
Daniel
--
Daniel Veillard | Open Source and Standards, Red Hat
veillard redhat com | libxml Gnome XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | virtualization library http://libvirt.org/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]