love2d-community / love-api

The whole LÖVE wiki in a Lua table.
http://love2d-community.github.io/love-api/
300 stars 48 forks source link

Using string buffer for faster string concatenation #59

Closed daviel closed 6 years ago

daviel commented 6 years ago

This increases the performance of the script. For more information see https://www.lua.org/pil/11.6.html. Would love to see string buffers in the whole script for faster development and testing. :+1:

Before:

time ./update.sh 

real    0m8,036s
user    0m7,084s
sys 0m0,950s

After:

time ./update.sh 

real    0m4,633s
user    0m4,596s
sys 0m0,038s
rm-code commented 6 years ago

Thanks 👍