Flash 9 XML vs. XMLDocument

Was going over some older Flex 2 beta posts by Ralf Bokelberg, a developer I very much admire, and found this interesting piece regarding the speed of XML vs. XMLDocument objects. Out of curiousity, I quickly tested his script with the latest Flash Player release (9.0.28.0) and sure enough, XMLDocument still beat out XML. I guess the E4X expressions remains a bit cumbersome performance-wise but it’s still very fast considering this test is being run 10,000 times. Certainly the lesser code and better readability benefits of E4X outweighs this minor performance hit but I thought it was interesting.

No Trackbacks

2 Comments

  1. tran vu
    Posted June 15, 2009 at 5:39 am | Permalink
  2. xml and flash document

    Posted June 15, 2009 at 5:39 am | Permalink