sahana / vesuvius

Sahana Vesuvius
http://sahanafoundation.org/products/vesuvius/
MIT License
24 stars 27 forks source link

Appending XAJAX Functions Performance #52

Closed AkshayKalose closed 10 years ago

AkshayKalose commented 10 years ago

Increase performance by not calling array_push() every time. array_push is recommended for pushing multiple values in one function call. After performing a few tests,, this is only good when you are pushing >= 30 values, otherwise $array[] = 'value'; is best, it takes 1/2 the time of calling array_push().