Saturday, July 30, 2011

JSON parsing/encoding with native parser results

By modifying the loaded results to avoid alphanumeric characters after \u#### (not required by JSON spec. required by Adobe's native parser: bug672484) I was able to get results for the native parser for comparison, and find yet another bug in the RegExp engine.

Thursday, June 09, 2011

JSON Parsers Stats

I've been neglecting my blog, shame on me. There is good news, though, I've found a large number of AS3 JSON parsers to compare my own to; So there are some speed tests!
The classes I've found are:

Saturday, December 11, 2010

More DenseMap stats.

It's been some time since I last posted. I've been working relatively hard too, but primarily on DenseMap's sorting algorithm. It now more closely matches Array's running times, and always sorts it correctly; All previous sorts were bugged and incorrect.

This time there's three kinds of tests (numeric, numeric/NaN/null, NaN/null).
10,000 elements as with previous tests, and two graphs:

Friday, November 26, 2010

DenseMap Alpha

I've decided to go ahead and publish my DenseMap class today, it's mostly usable.

A few functions don't work, or aren't fully / properly implemented yet, but they should be fixed over the next few weeks; the list of functions in the noted categories are:

Saturday, November 20, 2010

AS3 Compiler vs DenseMap

Basically, the compiler sucks eggs. In some areas, it's taken my code and turned it into Codethulhu.

Take, for example, this statement: var i:int = left < 0 ? left = 0 : left;
Simple, right? Not really.

This is what I thought the compiler would produce:

Friday, November 19, 2010

DenseMap Preview 2

It's been nearly 3 weeks since that first post, and it's time well spent, I think.

There have been some dramatic improvements in that time, and I'm left with only three functions that need some polish to work properly, sort, sortOn and splice.

The latest results show that in total, DenseMap is 7x faster, and with the last FP release (10.1 r102) Adobe made some improvements to Array, but they are far less impressive. ;) Results after the jump.

Friday, November 05, 2010

Inheritance from Object

By Adobe:
The Object class is at the root of the ActionScript class hierarchy.
Hrm. First impressions are that this means that everything we interact with in AS3 is a subclass of Object, making the * type is obsolete entirely, and we should cast to Object instead, since it's faster than a * type.