Re: [xml] How many entrys a xml file could support?



thanks a lot!

On 8/26/05, Daniel Veillard <veillard redhat com> wrote:
On Fri, Aug 26, 2005 at 10:38:01AM -0200, Arx Henrique wrote:
i'm use xml to storage this information, and show it in a GtkTreeView,
so, if i have 5000 entries, is this will be slow to show? i think so,


<root>
  <user>
    <name>some</name>
    <addres>some</addres>
    <email>some</email>
    <phone>phone</phone>
  </user>
    ...
</root>

paphio:~ -> ls -l tst5000.xml
-rw-rw-r--  1 veillard www 580015 Aug 26 14:46 tst5000.xml
paphio:~/gamin -> wc -l tst5000.xml
30002 tst5000.xml
paphio:~ -> /usr/bin/xmllint --timing --noout tst5000.xml
Parsing took 75 ms
Freeing took 41 ms
paphio:~ ->

  I can't tell for the GtkTreeView and rendering but libxml2 should parse
it in less than a tenth of a second, in most use case xml parsing speed
is I/O bound !

Daniel

--
Daniel Veillard      | Red Hat Desktop team http://redhat.com/
veillard redhat com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/



-- 
"A fé remove montanas, mas eu prefiro a dinamite"



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]