Performance update using object and array literals

The object and array literals are faster than the 'new' keyword.
This commit is contained in:
Wilson Silva
2012-10-09 15:42:56 +01:00
parent 6f0a965817
commit 0966767ae0
21 changed files with 49 additions and 49 deletions

View File

@@ -737,7 +737,7 @@ package alternativa.engine3d.loaders {
var byteArray:ByteArray = buffer.byteBuffer;
byteArray.endian = Endian.LITTLE_ENDIAN;
var offset:int = 0;
var attributes:Array = new Array();
var attributes:Array = [];
var jointsOffset:int = 0;
for (var k:int = 0; k < buffer.attributes.length; k++) {
var attr:int;