>Subject: Re: Word Lists for Games
>From: Robert Purcell <[EMAIL PROTECTED]>
>Date: Tue, 7 Jan 2003 10:33:24 -0800 (PST)
>
>I tried using file streams, but again, I wanted the
>word list to be contained WITHIN the PRC file.  I
>DON'T want the end-user to have to load the word list
>separately from the PRC file.  And, the issue still
>remains that the list is compressed...therefore, it
>must be decompressed before it can be used.

You are getting good advice, but really not listening to it.

When you unpack the word list, write it to a PDB file,
which actually provides very fast read access, comparable
to the speed of using heap (without size limitations).  
Do this instead of trying to store the word list in heap.  
View the PDB file as an extension to heap, which is what it is!
Create the minimum number of PDB records, using a record
size of between 10K and 32K, with many words in each record.
You can then lock pointers to each record for the life of your
program.

You can leave the PDB file around between use of your
program, or delete it each time your program exits.  Leaving
it is faster as you don't need to recreate it each time your
program starts-up.

Roger Stringer
Marietta Systems, Inc.  (www.RF-TP.com)


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to