There are several different questions going on here but remember, subsonic rounds are truly hearing safe with 22LR, supersonic rounds still have the crack and many like myself wear plugs with supers.
Best barrel length for suppressed shooting is 4.5" - 5.0" as it will keep almost all 22LR subsonic. Only the stingers and hyper velocity stuff may break the sound barrier. This length let's you purchase cheap bulk pack ammo versus purchasing more expensive subsonic ammo.
Best barrel length for accuracy is kind of misleading. Accuracy isn't totally dependent on barrel length. I own some very accurate short barreled firearms. The extra length will mainly give you velocity over the short barrel. Short barrels are typically much more rigid than their longer counterparts which helps maintain accuracy as it heats up (not really a problem with 22LR though). Sight in your gun with your preferred ammo and it's given barrel length and you'll be good to go. If you don't want to SBR it the Tacsol SBX shrouded barrel may be an option as well.
Best ammo for a long barrel is
Gem-Tech Subsonic 42gr. I've tried many subsonic and standard velocity 22LR and have found this to be the best in any barrel longer than 5". It functions and stays subsonic in my 10/22s and wife's MP-15/22. It also stays subsonic in my Ruber American 18" bolt gun.
Best ammo for a short barrel is anything that stays subsonic for little money!
For possibly the ultimate barrel check out the
Liberty Pinnacle 2. It has 4.75" of barrel and the rest of the barrel is baffle stack. It's overall length is 16" so no SBR approval is required.