oh. I see now. You mean the use of write, end, and read methods on the hash here. 

You mention more efficient streaming, but in this case the whole string to work on is given as an argument, so it wouldn't get any more efficient than with the old API.