Huh, I didn&#x27;t consider the possibility of pre-allocating space for the entire state list.  That&#x27;s a cute trick, making it less memory efficient in the average case (though more efficient CPU-wise by avoiding malloc) but also addressing my exact concern.  Nice.<p>edit: I guess I should have just looked that up sooner.  Sorry for any hassle or aggravations.