the length of the pair doesn’t affect latency
The length of the line does affect the transmission rate though (bits per second), which in turn affects the time to transmit a packet. This would be especially noticeable in the upstream direction, where the transmission speeds are lower, and with larger packets.
e.g. at 10Mbps, transmitting a 1500 byte packet takes 1.2ms (=1500*8/10000000). At 1Mbps, transmitting the same packet takes 12ms.
However this effect is unlikely to be noticed with 56-byte ping packets, where it would add about half a millisecond at 1Mbps.
There is also signal processing on top of this, which adds some latency for DSL compared to optical. But as has already been said, interleaving is going to make a much bigger difference.