If I’m writing a PHP project and decide to use a third-party ORM or DBAL like Doctrine, does the size of that project (in terms of MB of source code) impact application performance?
If I include a PHP library that’s 200MB, but only use 2MB worth of classes and resources in it, does the other 198MB impact application performance?
tldr; just don’t worry about it 😉
Okay, so here is a totally generic answer:
Measure the performance: where is/are the bottlenecks? Is there an issue? Memory? Disk access? Disk quota? Other?
Depending on system resources and library usage/design the “on disk” size might make a difference … but it probably has little effect. (Although from the question, as far as I can gather, 198MB are “useless” as they are not code or resources? Don’t make your Working Copy, tests, or additional documentation, etc., “live”: these things belong only on build/development machines.)
In any case, a good library will be modularized and only load what is needed and the only way to know the impact of the library, if any, “for certain”, is to test the library usage in the target environment.