The reason the wddx.js stuff is so slow is because it's parsing the XML as a
string. The larger the string the slow it is. It was written this way for
maximum browser compatibility.

Since you're relying on AJAX (which would utilize an XML object within the
browser,) you might be able to get a speed increase by creating a new WDDX
library that uses the XML object to natively parse the XML document and then
convert that into data.

It would be interesting to see what the speed difference would be. I would
think it would be substantial, but still might be klunky over really large
XML chunks (just because the browsers generally don't handle very large XML
data streams...)

-Dan



>-----Original Message-----
>From: wolf2k5 [mailto:[EMAIL PROTECTED]
>Sent: Sunday, October 02, 2005 3:33 PM
>To: CF-Talk
>Subject: [SOT] Better WDDX JavaScript serializer/deserializer functions?
>
>Hi all,
>
>I am developing a web application with ColdFusion MX 6.1.
>
>I added some AJAX features using WDDX as format for exchanging data
>between the browser and the server, since it's supported natively by
>ColdFusion (e.g. CFCs with remote access).
>
>However the WDDX JavaScript serializer/deserializer functions from the
>www.openwddx.org web site seems pretty slow when dealing with
>large/complex amount of data, e.g. a 50 KBytes WDDX packet, containing
>a struct, containing some strings and a large recordset ...
>
>Both Internet Explorer and Firefox take up a lot of time (e.g. 10
>seconds) to decode the data ...
>
>Do you know any better WDDX JS library?
>
>Should I just dump WDDX and go with something more recent, e.g. JSON?
>
>Thanks.
>
>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:220037
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to