سؤال

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