[Swfdec] [Swfdec-commits] 15 commits - doc/swfdec.types swfdec/Makefile.am swfdec/swfdec_amf.c swfdec/swfdec_as_array.c swfdec/swfdec_as_array.h swfdec/swfdec_as_boolean.c swfdec/swfdec_as_boolean.h swfdec/swfdec_as_context.c swfdec/swfdec_as_context.h sw
Benjamin Otte
otte at gnome.org
Thu Oct 30 02:45:13 PDT 2008
On Thu, Oct 30, 2008 at 2:59 AM, zou lunkai <zoulunkai at gmail.com> wrote:
> In ActionScript, primitive numbers are not GC-collected or reference
> counted, aren't they?
>
> What's the good point to make primitive numbers to be heap allocated?
> Is it overkill?
>
Two things:
1) Performance and memory footprint - you want the value type to be
machine size (see every Javascript engine out there). If you put
doubles into the value type, you need > 8 bytes (8 for the double and
2 or 3 for the type description)
2) This test:
x = 0/0;
y = x;
z = 0/0;
trace (x == y);
trace (x == z);
In somewhat extended form also available as test/trace/equality-nan*.swf
And as you noticed, sending to the commits list is disabled for mere
mortals, so all useful discussion happens on the swfdec list. The
commits list is just for spam from various bots (Bugzilla, commits,
and I still want to hook up the wiki).
Cheers,
Benjamin
More information about the Swfdec
mailing list