Re: [Nautilus-list] Small optimization
- From: Ettore Perazzoli <ettore ximian com>
- To: Darin Adler <darin bentspoon com>
- Cc: nautilus-list lists eazel com
- Subject: Re: [Nautilus-list] Small optimization
- Date: 30 Jun 2001 03:00:31 -0400
> I'm not sure I'd consider this a real optimization. I'd bet that it doesn'
> t make a measurable difference; it's usually a mistake to "optimize"
> existing code in a way that users can't detect.
Of course I agree. But in this case, it's just a couple of wasted
operations, without adding any clarity to the code.
> The concept of the patch is just fine, but it doesn't follow Nautilus
> coding style guidelines. As described in nautilus/doc/style-guide.html, we
> put all declarations at the top of the function, so the declarations
> should be left outside the if statement.
OK, I'll commit after this change.
--
Ettore
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]