How do you wash your swim suits? Always by hand? What kind of detergent?

I've just had to spend a fair amount of effort finding a new swim suit that fits and looks reasonable. I don't want to ruin it but also don't have much time for clothes that require special care. Is occasional machine washing okay?