Re: Does class length slow down performance

From: Date: Thu, 22 Jul 2010 13:59:03 +0000
Subject: Re: Does class length slow down performance
References: 1 2 3 4 5 6 7  Groups: php.general 
Request: Send a blank email to php-general+get-307093@lists.php.net to get a copy of this message
On 22 July 2010 15:49, Sebastian Ewert <seb2015@yahoo.de> wrote: > 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. No, I don't think there will be problems. I also think the only way you'll ever find out whether it *will* be a problem in your system is by testing. Regards Peter -- <hype> WWW: http://plphp.dk / http://plind.dk LinkedIn: http://www.linkedin.com/in/plind BeWelcome/Couchsurfing: Fake51 Twitter: http://twitter.com/kafe15 </hype>

« previous php.general (#307093) next »