From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,4f316de357ae35e9 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-08-05 09:20:21 PST Path: archiver1.google.com!news2.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed1.cidera.com!Cidera!cyclone.socal.rr.com!cyclone3.kc.rr.com!news3.kc.rr.com!twister.socal.rr.com.POSTED!not-for-mail Message-ID: <3D4EA5DA.E764BFD7@san.rr.com> From: Darren New X-Mailer: Mozilla 4.77 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: FAQ and string functions References: <20020730093206.A8550@videoproject.kiev.ua> <20020731182308.K1083@videoproject.kiev.ua> <20020801161052.M1080@videoproject.kiev.ua> <20020802193535.N1101@videoproject.kiev.ua> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Mon, 05 Aug 2002 16:20:20 GMT NNTP-Posting-Host: 66.74.216.166 X-Complaints-To: abuse@rr.com X-Trace: twister.socal.rr.com 1028564420 66.74.216.166 (Mon, 05 Aug 2002 09:20:20 PDT) NNTP-Posting-Date: Mon, 05 Aug 2002 09:20:20 PDT Organization: RoadRunner - West Xref: archiver1.google.com comp.lang.ada:27714 Date: 2002-08-05T16:20:20+00:00 List-Id: "Dmitry A. Kazakov" wrote: > I remember a project with a config file of ~2MBytes big. (it was a > Windows registry folder). I wonder how much time it would take to > parse it using split technique. This is a pentium III 733MHz running Win2K: D:\Documents and Settings\DNew\Desktop>tclsh83 % proc x {} { set f [open saved-registry.reg] global d set d [read $f] close $f } % time x 1943000 microseconds per iteration % time {set y [split $d =]} 1653000 microseconds per iteration % time {set y [split $d ,]} 3626000 microseconds per iteration % file size saved-registry.reg 17999301 % So you have an 18meg text version dump of the registry. Reading it took 1.9 seconds, splitting it on all the = signs took 1.6 seconds, and splitting it on all the commas took 3.6 seconds. How long did it take you to write the unbounded array package? To compile it? :-) -- Darren New San Diego, CA, USA (PST). Cryptokeys on demand. ** http://images.fbrtech.com/dnew/ ** They looked up at me like I was a T-bone steak walking into an all-you-can-eat seafood buffet.