If I had a large number of functions would it be better to keep them all in one large file or would it be better to separate them into several files of related functions. By
Definitely separate them, for maintainability sake. I doubt performance will suffer at all, but even if it does (just a teensy bit) you're better off writing maintainable, readable code.