http://qs1969.pair.com?node_id=1175953


in reply to push to array without copying

I found that "printf" was not the most efficient way to format fixed-width data. It was faster to append whitespace padding or truncate with a regex as needed. Probably since it modifies the variable in-place and it doesn't need to parse a format string. This allowed me to try using an array of references, but I saw no performance improvement. I also see no performance improvement deleting the value from the hash when pushing it to an array.