I need some clarification on the performance of a website.
Assume server configuration is optimised and the same, just think about file size and number.
How the size of the file affect the performance of the website?
Let's assume we have a file with 10000 lines and there is a function with 50 lines. We are calling only that function. Nothing else is used at all.
Another file with this function alone of 50 lines.
If we execute both files, will a small file will be faster or both will execute as same?
Why we are trying to reduce the line of code?
Assume there are 1000 files on the server. We are using only 2 files. Another server having only 2 files. Will there be a difference between these 2 server files execution?
I am using PHP. But the question is general.