If low latency is more important than space, you can go straight up in a mostly 1x2 space, with a small section of 2x3:
If space is more important than low latency, you can replace the repeater with a vertical double NOT gate, which would lower the maximum space from 2x3 to 1x3: