In order of importance for me:
Getting a bike fit
Getting a new saddle
New wheels
The fit was the most valuable and the least expensive. The wheels were the least valuable and the most expensive. But they all contribute to making long rides a positive experience.