- reserve the array sizes to avoid re-allocing (even though its a lower limit it still helps) - increase array size in larger steps then 1 by 1. - avoid a few array lookups. - use more obvious variable naming to make the function more readable.
- reserve the array sizes to avoid re-allocing (even though its a lower limit it still helps) - increase array size in larger steps then 1 by 1. - avoid a few array lookups. - use more obvious variable naming to make the function more readable.