Weight probably only plays a part where acceleration or climbing is a large part of the segment you need to increase speed on. However weight shouldn't be ignored for long rides since it's effects are cumulative for how much energy you'll have at the end of the long ride. Otherwise ride more goes a long way. As does some structured training if you can't do the ride more part.