Re: Does class length slow down performance
| From: | Sebastian Ewert | Date: | Thu, 22 Jul 2010 13:49:51 +0000 |
| Subject: | Re: Does class length slow down performance | ||
| References: | 1 2 3 4 5 6 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-307092@lists.php.net to get a copy of this message | ||
Peter Lind wrote:
>
> It's unlikely to cause you performance problems unless you've got a
> huge amount of traffic - and then you could probably fix your problems
> easier than refactoring classes.
>
> Personal anecdote: I've worked on classes longer than 3K lines with no
> marked performance problem. That doesn't mean I recommend it, though:
> bigger classes are a pain to maintain as you loose overview of what's
> in the class.
>
> Regards
> Peter
>
So you think that a length of 850 lines won't lead to a performance
problem?
The site is not online yet. I just wanted to know when to split a class
and if there are performance problems with to long classes.
Thanks,
Sebastian