I'm glad to see you putting some good thought and research into something like this. Testing different implementations for speed and memory usage to get actual metrics is a good habit to get into. ...