- Once early in the season I tried letting a very fit fixie rider pace me up a canyon road until we literally couldn't pedal anymore due to leg muscle exhaustion. The fixie part is important because I had to stay in a much higher gear than I would have otherwise, and stand up and fight just to stay with him on the steep sections. We both collapsed and were near puking, and it took about ~15 mins of rest before we could ride down. Next day, before my legs had a chance to get sore, I did another regular climb. The rest of the season, I was unusually and noticeably faster than my friends. The workout where I pushed to exhaustion gave me a boost I didn't expect.
- Last couple of years I've worked up up to some longer rides, gone out for few super long rides on my own (50-100 miles). Having to work up the endurance to get through multiple big climbs in a ride, I've noticed, really helps me hold my own when I'm back riding shorter climbs with friends.
Generally just riding a lot will help too, technique comes with practice. Good luck!
BTW, it might be important that the sprint to exhaustion up the canyon was relatively short; it was 5 miles averaging medium steep, with spots up to 12% grade. I usually ride it in granny gear, “speed 1” on a 27-speed bike, smallest chain ring, largest on the sprocket. To follow the fixie I had to stay in speed 14 (middle chain ring, middle of the sprocket.)
One technique you can practice is calibrating your effort level in terms of watts or heart rate to the length of the climb. You need to get a feel for the maximum output you can sustain without getting gassed before you reach the summit.
But without a power meter you can certainly pace yourself by heart rate. Figure out your heart rate zones and then do some test rides holding your heart rate steady in a particular zone and sustain the effort as long as you can. Then you can estimate a maximum target heart rate for each climb segment based on how much time it should take.
You can also experiment with different pedaling cadences. Every cyclist has a different optimal cadence, but in general you want to shift down when climbing and keep the cadence high (unless you're intentionally doing a low cadence strength workout).
So if I have a power meter I have instant feedback on the power level, and if I know my target power level I can work up to it without overshooting.
HR, unlike power, is a lagging indicator so I am likely to overshoot, especially if I am poor at pacing to begin with.
Another thing you can do is thinking of saving some gas in the tank for the last bit of the climb where you'll sprint as you summit. Start with this in mind at the bottom