i'm a little shocked how slow amfPHP is. I've compared the overall performance of AMF and JSON Requests.

Both way's where measured from the beginning of the request till having strongly typed data on Actionscript Site.

The JSON way was always more than twice faster.

I'm normaly running on a Java Backend, but now i'm forced to PHP.

Does someone knows a better support of AMF in the PHP world. FlashBuilder comes with integrated support of Zend AMF. But it is slow as amfPHP.

THX for Help

有帮助吗?

解决方案 3

There is a free, fast and extremely reliable PHP AMF3 extension:

http://neoxic.me/php-amf3/

It provides two native functions - amf3_encode() and amf3_decode(). No mess, pure speed!

其他提示

AMF is complex, so it's inevitable that parsing it in PHP is slow. Take a look at adding a PHP extension that does it in C: http://baguetteamf.com . (disclaimer, I created that project)

You will can use Apache Thrift, as3 and php supported.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top