This isn't exactly a feature request, it's more of a question really.
Is the new AS3.0 Binary Socket class any faster than the XMLSocket class? Have you done any testing on using Smartfox with the Binary socket?
I'm wondering if there is less performance overhead, or even if it helps to decrease the byte size of the messaging?
So far on my Smartfox Pro project I never use XML, I try to be very obsessive about keeping my messaging as tight as possible (I use sendXtMessage, use constant 1 letter message names, bitwise flags for anything I can, etc) -- and I'm curious if there's been any investigation of using the new Socket class to make things even more concise.
Thanks in advance!
AS3 Binary Socket?
Is the new AS3.0 Binary Socket class any faster than the XMLSocket class? Have you done any testing on using Smartfox with the Binary socket?
Yes it is. Haven't done specific tests in that area but of course the new JIT compiler inside the AVM2 boost the performance quite a bit!
The current client AS 3.0 APIs do use the binary socket classes, not the XMLSocket.
I'm wondering if there is less performance overhead, or even if it helps to decrease the byte size of the messaging?
Yeah, we have plans to switch to a fully binary protocol that can be turned on/off depending if you use an AS 3.0 client or not.
This will definitely save a lot of bandwidth.
So far on my Smartfox Pro project I never use XML, I try to be very obsessive about keeping my messaging as tight as possible
Sure, it's the right approach.
This will be part of a major new release. It's still a bit "top secret"
Anyways, as of now, we don't have a release date.
Side note: we have received many requests about the binary protocol, as many people feels that binary is somehow better.
Of course in various cases it can be better, however if you take a look at FMS binary data and you compare it to our JSON or String protocol you won't find much difference in message size. In many cases the String protocol can be smaller than a regular AMF packet.
Anyways, as of now, we don't have a release date.
Side note: we have received many requests about the binary protocol, as many people feels that binary is somehow better.
Of course in various cases it can be better, however if you take a look at FMS binary data and you compare it to our JSON or String protocol you won't find much difference in message size. In many cases the String protocol can be smaller than a regular AMF packet.
Nice suggestion, patso
Here's a base64 implementation in AS 2.0
--> http://blog.jasonnussbaum.com/?p=108
Here's a base64 implementation in AS 2.0
--> http://blog.jasonnussbaum.com/?p=108
From the SFS Pro Tutorial 8.17 "Socket File Loader":
Any news on binary sockets?
In order to maintain compatibility with older versions of the Flash Player, SmartFoxServer doesn't support a full binary protocol, yet. In fact, as of today (December 2007), the number of applications and games done in Actionscript 3 are still a small percentage compared to those created in AS 2.0. In future releases SmartFoxServer PRO will definitely support the new binary sockets provided by the Flash Player 9.
Any news on binary sockets?
- thecreatrix
- Posts: 19
- Joined: 20 Aug 2008, 02:32
- Contact:
2.0......?
So what's up with 2.0?
Seems like it will be a major change that I'll have to prepare for...I'd like to know when it may come out. As I'd really like to re-do my network protocol to be all binary.
Also--I really think you need to include an encryption option on the server as well. Maybe you can request a public key on the server, much like you can request a random number. And then use that to encrypt/decrypt all the traffic.
Seems like it will be a major change that I'll have to prepare for...I'd like to know when it may come out. As I'd really like to re-do my network protocol to be all binary.
Also--I really think you need to include an encryption option on the server as well. Maybe you can request a public key on the server, much like you can request a random number. And then use that to encrypt/decrypt all the traffic.
Return to “Features Wish List”
Who is online
Users browsing this forum: No registered users and 23 guests