Patch Set 1: Abandoned

This is significantly slower than our current implementation, even though it should produce less garbage. I'm exploring other alternatives, but this particular approach is dead.