There used to be a few 26" folding bikes. I think they just fold in half and don't get real small, but they might be handy for certain situations.
If you just need the occasional compacting the bike, also consider S&S Couplers which can be installed on many different types of frames (with round tubes?)