Re: Speeding up XCode?
Re: Speeding up XCode?
- Subject: Re: Speeding up XCode?
- From: Cameron Hayne <email@hidden>
- Date: Wed, 19 Oct 2005 00:30:07 -0400
On 18-Oct-05, at 5:57 PM, Robert Dell wrote:
The code was written as it was to take advantage of ease of
modification for the future
Well, the lack of structure makes it seem very hard to modify from
the point of view of anyone other than the original programmer.
Readability/Understandability => ease of modification
are you trying to make my code run slower?
Probably. Speed of execution should almost never be a priority for
code intended to run on any remotely modern machine. I haven't run
your program but my quick look at it doesn't show anything that would
likely be a performance problem. It is after all, a game system and
hence does not need to run any faster than the human-coprocessor that
is doing I/O with it. Rewriting your code to use functions, etc would
probably add a few microseconds to each iteration. But in any case,
you should only optimize after you have used profiling tools to
determine what the performance hotspots actually are.
And in any case, my comments were addressing the issue of programmer-
productivity (e.g. problems due to the large file, etc), not runtime
performance.
People that haven't grown up with 48k RAM, 1MHz machines that had
to hand code for streamlined speed don't know how to optimize
properly. functions do NOT increase speed, they REDUCE the speed.
My first big programming project was writing a BASIC compiler in Z80
assembler for the Sinclair Spectrum. I know how to hand code - I
spent several evenings recoding some parts just to save a few dozen
bytes.
But my point above is that most of us are not writing assembly code
anymore and there is no reason to do something similar when coding in C.
--
Cameron Hayne
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden