timkurvers / as3-crypto

Fork of Henri Torgemane's excellent as3 cryptography library
http://code.google.com/p/as3crypto
Other
93 stars 46 forks source link

Optimized version of fromArray #12

Closed webysther closed 10 years ago

webysther commented 11 years ago
timkurvers commented 11 years ago

Thanks for the contribution! Most definitely see the performance benefits for big arrays.

Just out of curiosity, the following snippet wouldn't cover your partial byte-array usage?

var b:ByteArray = new ByteArray();
...
b.length = 100;
Hex.fromArray(b);
webysther commented 11 years ago

You is correct, i apply the correction just for the if inside loop.