Re: Static data -- thanks
Re: Static data -- thanks
- Subject: Re: Static data -- thanks
- From: Markian Hlynka <email@hidden>
- Date: Tue, 6 Jul 2004 12:17:21 -0600
On Jul 6, 2004, at 10:52, Ricky Sharp wrote:
On Tuesday, July 06, 2004, at 09:52AM, Christopher Beck
<email@hidden> wrote:
Thanks to everyone who made suggestions about how to deal with a large
amount of static data. As suggested by Markian, I turned off
prebinding.
I would investigate this a bit more. Are you sure you want to turn
prebinding off? I believe it has many benefits.
someone from apple on the list told me not to worry, as the performance
loss as of 10.3.4 was only at startup, and the application would still
launch pretty fast. It seemed to be implied that previously this was
not the case, but they'd done a lot of work to speed up the launching
of non-prebound apps.
I also found that it would only compile
using the "fastest" optimization and not the others. Interestingly,
the
executable is huge (42MB). The same code compiled with Visual studio
produces an executable that is 56KB.
As pointed out by others, you should really move to a dynamic memory
model.
I have to agree with Eric... There are times when you do want static
data like this. For example, it seems silly to malloc/new a table that
is persistent throughout the entire cycle of your program.
Markian
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.