File tree Expand file tree Collapse file tree 3 files changed +13
-5
lines changed
Expand file tree Collapse file tree 3 files changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ cdata("hello > < ' \" I have odd characters")
7878```
7979
8080### ` XML.RowNode `
81- - A data structure that can used as a * Tables.jl* source. It is only lazy in how it access its children.
81+ - A data structure that can used as a * Tables.jl* source. It is only lazy in how it accesses its children.
8282
8383
8484### ` XML.RawData `
Original file line number Diff line number Diff line change 22BenchmarkTools = " 6e4b80f9-dd63-53aa-95a3-0cdb28fa8baf"
33EzXML = " 8f5d6c58-4d21-5cfd-889c-e3ad7ee6a615"
44XML = " 72c71f33-b9b6-44de-8c94-c961784809e2"
5+ XMLDict = " 228000da-037f-5747-90a9-8195ccbf91a5"
Original file line number Diff line number Diff line change 11using XML: XML
22using EzXML: EzXML
3+ using XMLDict: XMLDict
34using BenchmarkTools
45
56
67file = download (" http://schemas.opengis.net/kml/2.2.0/ogckml22.xsd" )
78filename = tempname ()
89
9- # -----------------------------------------------------------------------------# read
10- @info " XML lazy read" @benchmark XML. RawData ($ file)
11- @info " XML read" @benchmark Node ($ file)
10+ # -----------------------------------------------------------------------------# Read
11+ @info " XML.Node" @benchmark Node ($ file)
12+ @info " XML.RowNode" @benchmark XML. RowNode ($ file)
13+ @info " EzXML.readxml" @benchmark EzXML. readxml ($ file)
14+ @info " XMLDict.xml_dict" @benchmark XMLDict. xml_dict (read ($ file, String))
1215
13- @info " EzXML read" @benchmark EzXML. readxml ($ file)
16+ # -----------------------------------------------------------------------------# Iteration
17+ @info " XML.RawData iteration" @benchmark (for x in XML. RawData ($ file); end )
18+ @info " XML.RowNode iteration" @benchmark (for x in XML. RowNode ($ file); end )
19+
20+ @info " EzXML.StreamReader" @benchmark (reader = open (EzXML. StreamReader, $ file); for x in reader; end ; close (reader))
You can’t perform that action at this time.
0 commit comments