Re: [gtk-list] Re: GTK widget: Round dial





On Sat, 10 Jan 1998, George wrote:

> > > I wouldn't say adding stuff which doesn't execute will make it slower ...
> > 
> > Well, if it's mixed in with code that does execute, you wind up not being
> > able to swap in the code which is executing without swapping in some of
> > the code that doesn't execute. this effectively slows down swapping and
> > increases memory usage. Personally, I'm all in favor of a small, fast
> > toolkit that can be easily modified, we just need to put a good bit of
> > thought into how to achieve both goals. 
> 
> true it would increase some memory usage, but if it were done smart and the
> less used stuff would be say in another .so file, so you would not need
> to swap it in since it would never get to execute, there would still be
> the code sprinkled with calls which would get loaded ...

It doesn't even need to be in a seperate .so file, just as long as the
stuff that is used is all grouped together, and the stuff that isn't used
is grouped together. If the code is called by a few conditionals, then the
overhead of doing this should be minimal (though if it's called by
conditionals everywhere, then there is overhead).



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