[SabreAMF] String references serializing AMF3
Evert | Rooftop
evertpot at gmail.com
Tue Nov 14 13:58:21 EST 2006
Update: there doesn't seem to be a way to check if 2 scalar variables
reference the same data. So I would say, don't implement this.. Could be
a really bad idea.
For objects it is possible (and should probably be done), because you
can do a simple == check.
I'll implement that one of these days.. Along with the fixes you
provided I'll put out a 0.5..
To the other people on this list: if you got a feature request, be sure
to let me know.. I'll create a roadmap for 1.0 soon, so people know what
they can expect.
Evert
Evert | Rooftop wrote:
> There's one big problem with this..
>
> You have to check if 2 strings are actually references to each other..
> If this is not the case, unexpected things might happen. If you do a
> simple check if 2 strings contain the same data, the data will end up in
> flex as references to each other..
>
> If you would then change 'stringA', 'stringB' automatically gets
> changed. I've never really needed to check if 2 variables are
> referencingo the same thing in PHP, but I also could not find it in
> the manual..
>
> I'm going to see if I can get a bit more info on this.
>
> Evert
>
> Evert | Rooftop wrote:
>
>> If your up for it, i'd happily accept a patch! I can also give you write
>> access to subversion if you'd like to..
>>
>> Jim Mischel wrote:
>>
>>
>>> SabreAMF currently does not cache strings and create references when
>>> serializing AMF3. The writeString() function in
>>> SabreAMF/AMF3/Serializer.php always writes the literal string. It
>>> doesn't look terribly difficult to cache the strings so that
>>> writeString() can create references if needed. Has anybody done this?
>>> If so, I'd like to see the code. If not, I'll code it up.
>>>
>>> Jim
>>>
>>>
>>>
>>> _______________________________________________
>>> sabreamf mailing list
>>> sabreamf at osflash.org
>>> http://osflash.org/mailman/listinfo/sabreamf_osflash.org
>>>
>>>
>>>
>>
>> _______________________________________________
>> sabreamf mailing list
>> sabreamf at osflash.org
>> http://osflash.org/mailman/listinfo/sabreamf_osflash.org
>>
>>
>
>
> _______________________________________________
> sabreamf mailing list
> sabreamf at osflash.org
> http://osflash.org/mailman/listinfo/sabreamf_osflash.org
>
More information about the sabreamf
mailing list