delorie.com/archives/browse.cgi | search |
X-Authentication-Warning: | delorie.com: mail set sender to geda-user-bounces using -f |
X-Recipient: | geda-user AT delorie DOT com |
X-Virus-Status: | Clean |
X-Virus-Scanned: | clamav-milter 0.98.4 at av01.lsn.net |
Message-ID: | <54DBE2C1.1030009@ecosensory.com> |
Date: | Wed, 11 Feb 2015 17:16:17 -0600 |
From: | John Griessen <john AT ecosensory DOT com> |
User-Agent: | Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.4.0 |
MIME-Version: | 1.0 |
To: | geda-user AT delorie DOT com |
Subject: | Re: [geda-user] Using Lua to safely read configuration and layout |
files (program attached) | |
References: | <CAOFvGD7WSM+qErYxvhe2m9YxwpAUvcEGsxgtYTZZmE_+v3Tpig AT mail DOT gmail DOT com> <54DBCB51 DOT 2080000 AT ecosensory DOT com> <CAOFvGD7jU4amu0AcugiSb24XOT+WKQGcvStJjBAK3am8XpjYUA AT mail DOT gmail DOT com> |
In-Reply-To: | <CAOFvGD7jU4amu0AcugiSb24XOT+WKQGcvStJjBAK3am8XpjYUA@mail.gmail.com> |
Reply-To: | geda-user AT delorie DOT com |
On 02/11/2015 04:19 PM, Jason White wrote: > John, this is using Lua not JSON. > > To iterate through all 200,000 elements in the 10 megabyte file > without printing, the program took 1.14 seconds on my dual core > machine from 2003. So roughly 175,000 elements per second or even more > roughly 8.8 "megabytes per second" given some average size per > element. Sounds like it'll do, doesn't it?:-) Lua! I bet it will parse gschem data as is pretty well also. JSON seems to like XML with the explicit repetition of the name for each item in a name:value pair list... not so hot.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |