[REBOL] Re: Searching in "table"
From: moliad:gmai:l at: 4-Sep-2007 23:36
for ultimate speed, you might want to do this instead:
table: make hash! [
> 3 ["Tim" "Peterson" 2]
> 1 ["John" "Smith" 3 ]
> 2 ["Jeff" "Brown" 1 ]
> ]
select table 1
== ["John" "Smith" 3]
but its a question of tradeoffs, RAM speed, and how large/flexible your
dataset and algorythms are ... I guess the best thing is to try different
approaches and see what is best for you...
sometimes, just converting a table into another is a bigger hit in itself.
-MAx
On 9/4/07, Maxim Olivier-Adlhoch <moliad-gmail.com> wrote: