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 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: <54DBCB51 DOT 2080000 AT ecosensory DOT com> In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit 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.