As Alex mentioned, I think things should be ready to support AMF (and/or
potential other serialization/deserialization approaches) via Reflection.

I already added support for registerClassAlias,  getClassByAlias, and (new)
getAliasByClass,in the reflection package - note that I did not put these
in the network project (which would have been consistent with flash.net.*)
because for js it seemed to me that they would always be used in
conjunction with Reflection API. But if others feel strongly about this,
feel free to change that.

I have not checked whether falcon handles [RemoteClass] meta to generate
registerClassAlias calls automatically. If it does then perhaps this needs
to be considered for js to use the new reflection function for this same
support.

Current reflection support will also allow for checking for [Transient]
metadata to exclude those readwrite accessors or variables from the set of
fields determined for serialization via reflection.

What we do not currently have is something analogous to IExternalizable,
but perhaps that could be for later (I think I may have used this only once
in the past, perhaps others use it more).

cheers,
Greg



On Fri, Oct 28, 2016 at 7:38 AM, OK <p...@olafkrueger.net> wrote:

> Hey Carlos,
>
>
> Carlos Rovira wrote
> > Hi Olaf, I think is more about efficiency and optimization. AMF is
> binary,
> > more compacted and faster that any other method I known out there.
>
> Yes, Flex/AMF is definately faster and I remember the discussions years ago
> about AMF regarding performance. But even if it's faster I'm not sure if
> you
> really notice it cause often there're other bottle necks that slow down
> things.
> More over I think it depends on the use case to be really profit by the
> performance lead of AMF.
>
> Don't get me wrong, it would be great if FlexJS will support AMF but I'd
> also like to say that the current lack of AMF support is no show stopper
> that makes it impossible to use FlexJS.
> In best case people maybe could just add a facade on top of their current
> backend to be able to speak JSON over http.
>
> Anyway, you are my MDL super hero, thanks again for working on it !!! ;-)
>
> Thanks,
> Olaf
>
>
>
>
>
> --
> View this message in context: http://apache-flex-
> development.2333347.n4.nabble.com/AMFPHP-support-for-FlexJS-
> tp56066p56087.html
> Sent from the Apache Flex Development mailing list archive at Nabble.com.
>

Reply via email to