[ticker-dev] Re: Attribute Naming

Ted Phelps phelps at dstc.edu.au
Thu Apr 11 06:38:59 EST 2002


David Arnold may have said:
> ...and you can select using require(), which is more efficient than
> a string comparison.

As an aside, I'd like to point out that although this statement is
currently true, it will not necessarily be so in the future, so let's
net let it affect our decisions.

The reasoning behind this statement is a corollary of what David was
already saying: if Protocol-Name is "foo" then Protocol-Name cannot
also be "bar" (although require(foo) and require(bar) can both be
true).  The evaluation engine could (and eventually will) be able to
take advantage of this fact to prune its search tree, possibly
eliminating many other tests and making string equality the faster
test.

Cheers,
-Ted





More information about the ticker-dev mailing list