• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Speeding up XCode?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Speeding up XCode? (From: Mark Wagner <email@hidden>)
 >Re: Speeding up XCode? (From: Robert Dell <email@hidden>)
 >Re: Speeding up XCode? (From: Cameron Hayne <email@hidden>)
 >Re: Speeding up XCode? (From: Andreas Mayer <email@hidden>)
 >Re: Speeding up XCode? (From: Robert Dell <email@hidden>)
 >Re: Speeding up XCode? (From: Cameron Hayne <email@hidden>)
 >Re: Speeding up XCode? (From: shin kurokawa <email@hidden>)
 >Re: Speeding up XCode? (From: Robert Dell <email@hidden>)

  • Prev by Date: Re: Using XCode for photoshop plugins.
  • Next by Date: Re: Speeding up XCode?
  • Previous by thread: Re: Speeding up XCode?
  • Next by thread: Re: Speeding up XCode?
  • Index(es):
    • Date
    • Thread