A big part of the answer to your question depends what you want to achieve. If that’s a true match-grade 9mm pistol, then I’d start with something people figured out how to accurize a long time ago, like a 1911. If you want a Glock that's somewhat more accurate than a stock gun, then you’re on the right track.
I have two Gen3 G17s with fitted Wilson Combat barrels. I’ve compared WC barrels and OEM barrels in these guns and found that groups made with WC barrels are 30-50% smaller, but that this difference isn't readily apparent until ranges get beyond 25 yards. After several years of chasing accuracy in Glocks, a new barrel wouldn’t be my first step toward improving accuracy.
Setting aside software issues for a minute, I’d start by upgrading ammo, ideally to a handload that’s been optimized for your pistol. One of the G17’s mentioned above has made numerous 3” five-shot groups at 50 yards with cast-bullet handloads in the OEM barrel, which is well as it shoots good jacketed bullets in the WC barrel. I know Glocks aren’t supposed to work with cast bullets, but here we are…
If you don’t handload, then test factory ammo and pick the load your pistol shoots best. The accuracy difference between loads can be surprising.
I’d also refine the trigger by testing connectors and trigger springs, and I’d do a 25-cent trigger job.
All of this pertains to Gen3 guns, and will get you a pistol that’s about as accurate as the typical HK is out of the box.
I just picked up a Gen4 G17 for T&E. The first five shots went into 1.25” offhand at 25 yards.
Based on my sample of 1, I’m not sure that fitting a barrel to a Gen4 gun would be worth the effort.
Okie John