[haiku-appserver] Re: invalidation again

  • From: "Axel Dörfler" <axeld@xxxxxxxxxxxxxxxx>
  • To: haiku-appserver@xxxxxxxxxxxxx
  • Date: Thu, 21 Apr 2005 13:35:47 +0200 CEST

"Rudolf" <drivers.be-hold@xxxxxxxxxxxx> wrote:
> ->Speed can be a good reason to not implement total safety as Stephan 
> would like to see it. 

In general, yes, but it's not where you start :-)
Unless you know the performance killers before you start, you'll 
usually find out about them during testing - it makes absolutely no 
sense to sacrifice the quality of all the code for eventual speed 
bottlenecks. It's usually enough to introduce some (possibly ugly) fast 
paths afterwards.
Of course, parameter checking can often be done by an ASSERT macro to 
not have it in production code, but that's only true for code that's 
completely under your control.

Bye,
   Axel.


Other related posts: