When you select Share at the top menu of iMovie and select where you want to share it to, it should compress it as necessary, especially if it is going to .Mac Web Gallery.
If you are sharing it by exporting to QuickTime, there are a few settings to go through which should ask you what you intentions are for the movie and compress it as necessary