Hi Joel,

>        if activity: select [...] first p [do activity]
>
>    to eliminate the overhead of a mezzanine call and the needless
>    (in this case) check for a /DEFAULT option.

An idea: if the select block is big, could be used an hash.
I've tested this idea with the big block svv/vid-styles, here the result on
one of the last field:

blk: svv/vid-styles
has: to-hash blk

>>length? blk
== 88 ;not so big
to be sure:
>> equal? do select has 'TEXT-LIST do select blk 'TEXT-LIST
== true

Now a loop of 100000 iteration:

>> timer2 [do select has 'TEXT-LIST] [do select blk 'TEXT-LIST] 100000
1 0:00:00.55
2 0:00:02.14

The time for block reduce to the start of block, so the average time should be
of 1.0 -1.10 against 0.5 - 0.55.
Because switch uses Select, we could use an hash also with switch.

---
Ciao
Romano


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.

Reply via email to