- put it into a header file (and start including it) - move the grow-the-array part into a separate function to encourage the fast-path to get inlined.