Re: Eu Data Format (was Eu to C...)

new topic     » topic index » view thread      » older message » newer message

> 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.

Regards,
Irv

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu