Performance with large API endpoint files [closed]

First some background. I am creating a RESTful API using PHP to access a MySQL database where I have stored a bunch of information I need to export to other services (3rd party software). The database isn’t especially large, and the MySQL queries aren’t intensive either.

Now here is my question: Does the size of my PHP file affect the performance of the API, in regards to both response time and server runtime?

I do not have a ton of experience with this, so I want to make sure I am not doing something wrong by creating a massive endpoint file instead of splitting my endpoint up into separate files.

Specifically I want to know at what file size does this start creating concerns, if at all.

I tried searching this topic up, but didn’t find any information on the correlation (or lack thereof) of file size to performance in regards to APIs.