[WIP] Improve connection parsing

WIP, do not merge yet.
@alicebob Can you `go test -bench` and tell me if you also see this number? I'm specifically interested in allocs/op.