RE: ramdisk (was: Re: Changing data types Concluded)
- Posted by Matt Lewis <matthew.w.lewis at saic.com> Mar 25, 2004
- 475 views
Allen V Robnett wrote: <snip> > I am interested in the possibility of letting the user determine > the length of the search string by pressing <ENTER> or <TAB> after > entering the desired number of characters to be matched. EU seems > to want sequences to be assigned a value which then determines the > length. I am considering using a slice to truncate the original > sequence length at whatever the length the user indicates. Will > this work? Is there a better way? I think the 'better way' may involve a new design. What is the logic of how records are allocated? Is there any structured layout behind them? If not, might there be a way to do this? If the answer is still no, you could design an indexing system to help you look up the strings. The fastest way would probably be a suffix tree (although it's going to take up a LOT of disk space for something this big). I have some code to build a tree, although it wouldn't work for your case, because it's all done in memory, but it could be done in files fairly easily. I'll see if I can get it modified in the next few days or so. Matt Lewis