Barrel length for a hunting rifle as far as accuracy goes? 2" will not be seen.
The big difference in long barrels and target rifles come into play in long range competition, for iron sighted rifles and scoped rifles for 1,000 matches, it gives you a longer sighting radius, and a bit more velocity .
This Palma match rifle has a 27" barrel, and is shot out to 900 maters.
This open F class rig has a 30" , untapered barrel to utilize the most out of the weight allowed.
The long barel helps keep things stable , and gets the most velocity out of the little 6mmBR cartridge
For
On a hunting rifle, the barrel length has more to do with balance than anything IMHO.
The two rifles pictured below are made for different applications, the one I am holding was made specifically for long range deer hunting with a 6.5WSM cartridge and a 30" barrel , and the one my son is holding was built for shorter ranges for varmints and deer with a 24" barrel in 6.5X284.
The smaller rifle weighs 10 pounds all up, but the 30" gun is a heavyweight at 12.5 pounds - you don't carry it far!
This "any sight " match rifle has a 30" barrel for stablilty and for the long sight radius when using irons.
it is competative all the way out to 1 mile, and the long barrel helps the 300WSM 210 grain match bullets stay super sonic for a long time.