Size difference: Room Variables or Raw String format?

Post here your questions about Actionscript and Java server side extensions development.

Moderators: Lapo, Bax

User avatar
Pippoflash
Posts: 135
Joined: 30 Jan 2006, 17:16
Contact:

Size difference: Room Variables or Raw String format?

Postby Pippoflash » 11 Feb 2006, 17:34

Hey :)
I have a server side extension in one room to store some data for all users.

Is it faster (on bandwidth terms) to use a:
_server.sendResponse() with "str"

or setting room variables that will be sent to all users?

Are room variables sent in raw string format or in XML?

thanks!!!
-----------------------
www.pippoflash.com
-----------------------
User avatar
Lapo
Site Admin
Posts: 23027
Joined: 21 Mar 2005, 09:50
Location: Italy

Postby Lapo » 11 Feb 2006, 17:43

In terms of bandwidth usage the "str" format is way more efficient.

User/Room Variables use an already optimized XML to serialize data, but they can't compete with the raw-protocol.

If you need to save every bit of bandwidth that's the way to go :)
Lapo
--
gotoAndPlay()
...addicted to flash games
User avatar
Pippoflash
Posts: 135
Joined: 30 Jan 2006, 17:16
Contact:

Postby Pippoflash » 11 Feb 2006, 17:54

Thanks Lapo :)
ciao!
-----------------------

www.pippoflash.com

-----------------------

Return to “Server Side Extension Development”

Who is online

Users browsing this forum: No registered users and 67 guests