![](https://secure.gravatar.com/avatar/9e03aaf8edbe4b2c0d25e30ab9a69ffb.jpg?s=120&d=mm&r=g)
On Feb 21, 2005, at 7:17 AM, Stefano Debenedetti wrote:
So I tried optimizing the canvas.as file and I found out that by changing the Canvas protocol in order to use plain old crappy TSV instead of XML gives it a performance boost that allows me to push the above mentioned refresh rate of the demo to 0.21, i.e. even better than the 0.25 that was unreachable before.
This is very amusing. It boggles my mind, really. The reason I used XML for the Canvas RPC mechanism rather than plain text was because in theory an XML parser written in C should exhibit better performance than a text parser written in pure actionscript. In fact, all the other work I had ever done with Flash used a plain old text format, and switching to XML was supposed to be an optimization. With a plain text format, there is the additional difficulty of supporting nested structures (which is simple in XML). Some of the encodings include dicts and lists. Anyway, this is very cool. Thank you. dp