Its hard to give you a strict yes or no answer...because the burn characteristics on the powder used..are a factor / and the amout of twist in the barrel, maybe even type and weight of the bullet...can be factors ..
But I think in general...revolver barrel lengths of less than 4" or so ...will affect the performance of the round ...whether its a .357 mag or .45 Colt...it will be about the same effect - if you were to fire each of them in a gun with a 2 1/2" barrel.
Looking at the reloading tables...most of the loads recommended for .45 Colt reference a 7.5" barrel.../ and most of the tables for a .357 mag reference a 10" barrel ...( for velocity, pressure, etc..).....but a couple of the reloading manuals I have online ...don't say what length of barrel they used to test the loads for velocity, pressure, etc...
But I think if you're going to shoot either caliber in a 2 1/2" barrel - you should anticipate some reduction in ballistic performance. You will experience a lot more muzzle jump, recoil, etc as well ...making a 2 1/2" barrel in a lot of calibers way more difficult to shoot effectively beyond 30 feet or so - especially when you add any speed factor into it ( like a double tap in under 1 sec..)...
If my standard is double taps in 1 sec / or triple taps in under 1.5 sec ...:
Personally I find 2 1/2" barrels in .357 reasonably easy to shoot in heavy frames ...not so easy in light frames - but at 4" - they shoot just as well as
6" or 8 3/8" barrels for me....
In a .44 mag ...(they're almost all in heavy frames - and any .44 mag in a light frame, I find unpleasant to shoot ) but personally I find barrels of 3" or
4" even in heavy frames ( like an N frame S&W )fairly difficult to double and triple tap....a 6" is much easier ...and an 8 3/8" is very easy to shoot.
In .45 Colt ...with 260gr or 300gr bullets...I can handle them in a heavy framed gun in 4 3/4" ....( never tried anything shorter than 4 3/4" ) ...and in
6" or 7.5" they're fine as well.
But weight of the gun ...in .44 mag or .45 Colt are a big factor for me ....or the muzzle jump gets to be too much for me to control ( a little arthritis in my hands, and wrists - hasn't made it any easier ) even though I'm 6'5" and 280 lbs...a steady diet of full power 230gr .44 mag in a S&W 629 3" ..even if its ported...( one box of 50 rds is enough for one day ! ) - and I'll move on to a gun in 6" or 8 3/8" if I want to shoot more .44 mag that day. Conversly, I can shoot 10 boxes of full power .357 mag in a 4" N frame S&W ( like a model 27 ) with no pain in my hands.