it's actually the other way round, rule of thumb is: shorter is better for higher RPM, longer for lower, kind of works for both intake and exhaust.
In 4-1 headers it gets a bit more complex, tuned length depends also on primary (before the collector) and secondary (collector to end can)
checking how your custom setup works would need a free dyno for a day or two and a few sets of pipes to test....
Guess that's why most people, even racers settle down at the end to what's out there on the shelf. supposedly its been dyno tested but for what cam? what carb setup? how do you like your power curve? tricky...
John Robinson's 4-str. tuning book is a good place to start your education on the subject.
TG