After 18" in a 22LR you are likely losing velocity not gaining. Like mentioned above, all powder is burned at around 16" depending on the ammo and after that you start losing velocity to friction. I've seen this using a chronograph to prove it, however, I wasn't starting at 24" and cutting the barrel back further and further each time and each barrel is a little different. Take my findings with a grain of salt but review it for whatever it may be worth to you.