bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug #24339] Initializers and waste of resources


From: Markus Hitter
Subject: Re: [bug #24339] Initializers and waste of resources
Date: Mon, 22 Sep 2008 11:04:53 +0200


Am 22.09.2008 um 02:28 schrieb Juan Manuel Borges Caño:

In the scrollview problem I ended using setContentView, so the default
clipview loaded is a waste of resources.

A few bytes for data/variables, yes. The code is re-used for the second instance, of course.

Maybe it makes the API bigger but in my opinion not for nothing.

Well, a bigger API means more use of resources. More computer resources as well as more demands to the developer's brain. GNUstep's/ Cocoa's slim API is usually considered as a strength, additional "convenience methods" rarely make things easier to code.

That said, categories allow you to extend any class to whatever fits your needs best.


MarKus

- - - - - - - - - - - - - - - - - - -
Dipl. Ing. Markus Hitter
http://www.jump-ing.de/








reply via email to

[Prev in Thread] Current Thread [Next in Thread]