I think that will depend on the environmental conditions. Since light is much faster than sound and does not need a medium to transmit through (in a vacuum), this might be a good option for light in the vacuum of space. However, if you were to have a thick, dense atmosphere (i.e., dust, heavy cloud cover) then there are certainly many ways in which sound may be able to travel better than light; or possibly even better than any form of signal using chemicals. As far as a race of intelligent beings who communicate over large distances in open space go, I would guess they use some form of electromagnetic energy - using either visual light, lasers, etc. to communicate with each other. So, evolution always selects that mode of communication which can best convey information within their particular environment; therefore, I do not believe that there is one 'optimal' means by which to communicate