1. Re: Eu Data Format (was Eu to C...)
- Posted by jstory at freenet.edmonton.ab.ca Jul 25, 2001
- 435 views
On Wed, 25 Jul 2001 irvm at ellijay.com wrote: > > On Wednesday 25 July 2001 10:06, jstory at freenet.edmonton.ab.ca wrote: > > > > I don't understand. What is Euphoria sequence format? What does > > > print.e do? > > I took a few minutes to write a converter which changes your text data > file (abbrev_modified.txt) into a single Eu sequence. > > Before: 2.3 meg > After: 1.7 meg > > Time to read the new data file into memory: 2 seconds. > > Entire code to read the 6210 records: > > fn = open("newdata.dat","r") > data = get(fn) > if data[1] = GET_SUCCESS then data = data[2] > else abort(1) > end if > > The new file contains string data where strings are used, and numeric > data elsewhere. This not only saves space, but speeds up the works. > There's no parsing required. > > The drawback: you'll have to use sprintf() when loading data into a > windows control, but that's not a big problem - sprintf() seems fast. > > I can e-mail the converted file to you privately if you want. Yes. Please do. > Regards, > Irv Jerry Story