[Date Prev][Date Next][Subject Prev][Subject Next][ Date Index][ Subject Index]

Re: Speed: Parsing vs. Searching



Reply to note from Harry Binswanger  Sun, 18 Apr
2004 21:50:50 -0400

> Using U2's ITER function, I found some surprising results in
> terms of speed.

Glad to see you're getting use out of ITER, Harry. (Hard to believe
it's 10 years old. Sheesh time flies.) It does lead to some eye-
opening results.

Your result makes sense. The shorter the file, the faster the
SEarch command. Likewise, the shorter the input string (among many
other possible variables), the faster XS. Take the following code,
for instance. It parses the input string (Save/Get 01) exactly ten
times. Time 1000 ITERations, and observe the difference in speed as
you lengthen or shorten S/G 01.

XPLeNCODE v2.0
b-gin [UNTITLED]
{<}SV01,0|1|2|3|4|5|6|7|8|9|A|B|C|D|E|F|G|H|I|J|K|L|M|N|O|P|Q
|R|S|T|U|V|W|X|Y|Z|0|1|2|3|4|5|6|7|8|9|A|B|C|D|E|F|G|H|I|J|K|
L|M|N|O|P|Q|R|S|T|U|V|W|X|Y|Z|0|1|2|3|4|5|6|7|8|9|A|B|C|D|E|F
|G|H|I|J|K|L|M|N|O|P|Q|R|S|T|U|V|W|X|Y|Z|0|1|2|3|4|5|6|7|8|9|
A|B|C|D|E|F|G|H|I|J|K|L|M|N|O|P|Q|R|S|T|U|V|W|X|Y|Z|0|1|2|3|4
|5|6|7|8|9|A|B|C|D|E|F|G|H|I|J|K|L|M|N|O|P|Q|R|S|T|U|V|W|X|Y|
Z|0|1|2|3|4|5|6|7|8|9|A|B|C|D|E|F|G|H|I|J|K|L|M|N|O|P|Q|R|S|T
|U|V|W|X|Y|Z|0|1|2|3|4|5|6|7|8|9|A|B|C|D|E|F|G|H|I|J|K|L|M|N|
O|P|Q|R|S|T|U|V|W|X|Y|Z|0|1|2|3|4|5|6|7|8|9|A|B|C|D|E|F|G|H|I
|J|K|L|M|N|O|P|Q|R|S|T|U|V|W|X|Y|Z|0|1|2|3|4|5|6|7|8|9|A|B|C|
D|E|F|G|H|I|J|K|L|M|N|O|P|Q|R|S|T|U|V|W|X|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