Thanks for showing these results.
I'm not missing the "attribute" method that much...and after this I don't feel any guilt for it. :)

-- Keith H --
http://keith-hair.com





Kenneth Kawamoto wrote:
I just run a quick and dirty test, and I think I can confirm that.

The following test for 10,000 times each:

testXML..*.( re["test"](attribute("title")));
testXML..topic.( re["test"](attribute("title")));
testXML.topics.topic.( re["test"](attribute("title")));
testXML.topics.topic.( re["test"](@title));
testXML.topics.topic.((re as RegExp).test(@title));

The result:

1114ms
1047ms
993ms
868ms
1087ms

So the wildcard "*" is indeed slower, which is logical. But also "attribute()" is slower than "@", moreover "(re as RegExp).test()" is slower than "re["test"]()" - well they are all logical too, you may say :)

Kenneth Kawamoto
http://www.materiaprima.co.uk/

_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to