Trying to improve my code's agility and loading time, I thought of doing this, so that the functions would be required only if the class was instantiated.
class User
{
public function __construct()
{
require('all_user_fns.php');
}
}
Inside all_user_fns.php will reside all User class's functions.
Is that feasible (maybe in another way)? Does it have any advantages when it comes to speed?
Thanks.