The hidden describeTypeJSON
function is faster than the XML-based describeType
function by default, but we can make it even faster. Today’s article describe just how this is done and achieves a nearly 10x speedup!
Posts Tagged describeTypeJSON
flash.utils.describeType
has been around since Flash 9 and is the standard way to find out interesting information about a Class
type, including its metadata/annotations. However, there’s a hidden function called describeTypeJSON
that provides an interesting alternative. Since describeType
is notoriously slow, could describeTypeJSON
be the speedy alternative we’ve been looking for? Today’s article puts them to the test!